libkroll/win32/string_util_icu.cpp
bool ReadUnicodeCharacter(const wchar_t* src, int32 src_len,
                        int32* char_index, uint32* code_point) {
  // Conversion is easy since the source is 32-bit.
  *code_point = src[*char_index];

  // Validate the value.
  return U_IS_UNICODE_CHAR(*code_point);
}
// Reads UTF-32 character. The usage is the same as the 8-bit version above.
Reads UTF-32 character. The usage is the same as the 8-bit version above.
Reads UTF - 32 character . The usage is the same as the 8 - bit version above .
bool ReadUnicodeCharacter(const wchar_t* src, int32 src_len,
                        int32* char_index, uint32* code_point) {
  *code_point = src[*char_index];
  return U_IS_UNICODE_CHAR(*code_point);
}
bool ReadUnicodeCharacter ( const wchar_t * src , int32 src_len , int32 * char_index , uint32 * code_point ) { * code_point = src [ * char_index ] ; return U_IS_UNICODE_CHAR ( * code_point ) ; }
Reads UTF-32 character.
Reads UTF - 32 character .
// Conversion is easy since the source is 32-bit. // Validate the value.