Lines Matching defs:source

2 // Use of this source code is governed by a BSD-style license that can be
44 sourceExhausted, // partial character in source, but hit end
46 sourceIllegal // source sequence is illegal/malformed
53 const UChar* source = *sourceStart;
55 while (source < sourceEnd) {
61 source; // In case we have to back up because of target overflow.
62 ch = static_cast<uint16_t>(*source++);
65 // If the 16 bits following the high surrogate are in the source buffer...
66 if (source < sourceEnd) {
67 UChar32 ch2 = static_cast<uint16_t>(*source);
71 ++source;
73 --source; // return to the illegal value itself
78 --source; // return to the high surrogate
85 --source; // return to the illegal value itself
106 source = oldSource; // Back up source pointer!
129 *sourceStart = source;
179 static bool isLegalUTF8(const unsigned char* source, int length) {
181 const unsigned char* srcptr = source + length;
196 switch (*source) {
215 if (*source >= 0x80 && *source < 0xC2) return false;
217 if (*source > 0xF4) return false;
268 const char* source = *sourceStart;
271 while (source < sourceEnd) {
272 int utf8SequenceLength = inlineUTF8SequenceLength(*source);
273 if (sourceEnd - source < utf8SequenceLength) {
278 if (!isLegalUTF8(reinterpret_cast<const unsigned char*>(source),
284 UChar32 character = readUTF8Sequence(source, utf8SequenceLength);
287 source -= utf8SequenceLength; // Back up source pointer!
296 source -= utf8SequenceLength; // return to the illegal value itself
309 source -= utf8SequenceLength; // Back up source pointer!
318 source -= utf8SequenceLength; // return to the start
327 *sourceStart = source;