wcschr method

int wcschr(
  1. List<wchar_t> wcs,
  2. wchar_t wc
)

Finds the first occurrence of the wide character wc in the wide string wcs.

Returns the index of the character, or -1 if the character is not found.

Implementation

int wcschr(List<wchar_t> wcs, wchar_t wc) {
  return wcs.indexOf(wc);
}