Lines Matching refs:utf8
11 /*! \brief Converts the given unicode character to utf8.
15 long into which the output utf8 characters will
47 /*! \brief Converts the given utf8 character to 4-byte unicode.
49 \param in Pointer to a C-String from which utf8 characters
111 UdfString::UdfString(const char *utf8)
116 SetTo(utf8);
138 UdfString::SetTo(const char *utf8)
140 TRACE(("UdfString::SetTo: utf8 = `%s', strlen(utf8) = %ld\n",
141 utf8, utf8 ? strlen(utf8) : 0));
144 if (utf8 == NULL) {
145 TRACE_ERROR(("UdfString::SetTo: passed NULL utf8 string\n"));
149 uint32 length = strlen(utf8);
150 // First copy the utf8 string
158 memcpy(fUtf8String, utf8, length + 1);
173 const char *in = utf8;
175 for (uint32 i = 0; i < length && uint32(in - utf8) < length; i++, rawLength++)
182 TRACE(("WARNING: utf8 string contained a multi-byte sequence which "
260 // Now convert to utf8
274 int32 allocationLength = maxLength*2+1; // Need at most 2 utf8 chars per uint8 char
296 int32 allocationLength = maxLength*3+1; // Need at most 3 utf8 chars per uint16 char