Home | History | Annotate | Download | only in inspector

Lines Matching defs:source

2 // Use of this source code is governed by a BSD-style license that can be
78 sourceExhausted, // partial character in source, but hit end
80 sourceIllegal // source sequence is illegal/malformed
87 const UChar* source = *sourceStart;
89 while (source < sourceEnd) {
95 source; // In case we have to back up because of target overflow.
96 ch = static_cast<uint16_t>(*source++);
99 // If the 16 bits following the high surrogate are in the source buffer...
100 if (source < sourceEnd) {
101 UChar32 ch2 = static_cast<uint16_t>(*source);
105 ++source;
107 --source; // return to the illegal value itself
112 --source; // return to the high surrogate
119 --source; // return to the illegal value itself
140 source = oldSource; // Back up source pointer!
160 *sourceStart = source;
210 static bool isLegalUTF8(const unsigned char* source, int length) {
212 const unsigned char* srcptr = source + length;
225 switch (*source) {
243 if (*source >= 0x80 && *source < 0xC2) return false;
245 if (*source > 0xF4) return false;
291 const char* source = *sourceStart;
294 while (source < sourceEnd) {
295 int utf8SequenceLength = inlineUTF8SequenceLength(*source);
296 if (sourceEnd - source < utf8SequenceLength) {
301 if (!isLegalUTF8(reinterpret_cast<const unsigned char*>(source),
307 UChar32 character = readUTF8Sequence(source, utf8SequenceLength);
310 source -= utf8SequenceLength; // Back up source pointer!
319 source -= utf8SequenceLength; // return to the illegal value itself
332 source -= utf8SequenceLength; // Back up source pointer!
341 source -= utf8SequenceLength; // return to the start
350 *sourceStart = source;