toUCSindex

Given an index i into an array of characters s[], and assuming that index i is at the start of a UTF character, determine the number of UCS characters up to that index i.

  1. size_t toUCSindex(char[] s, size_t i)
  2. size_t toUCSindex(wchar[] s, size_t i)
  3. size_t toUCSindex(dchar[] s, size_t i)
    toUCSindex
    (
    in dchar[] s
    ,)

Meta