Home | History | Annotate | Download | only in Basic

Lines Matching refs:UTF8

42     Jan 2004: updated switches in from-UTF8 conversions.
88 * Magic values subtracted from a buffer value during UTF8 conversion.
102 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
222 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
225 UTF8* target = *targetStart;
276 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
277 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
278 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
279 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]);
292 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
295 UTF8* target = *targetStart;
329 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
330 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
331 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
332 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
354 static Boolean isLegalUTF8(const UTF8 *source, int length) {
355 UTF8 a;
356 const UTF8 *srcptr = source+length;
385 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {
399 unsigned getNumBytesForUTF8(UTF8 first) {
409 Boolean isLegalUTF8String(const UTF8 **source, const UTF8 *sourceEnd) {
422 const UTF8** sourceStart, const UTF8* sourceEnd,
425 const UTF8* source = *sourceStart;
495 const UTF8** sourceStart, const UTF8* sourceEnd,
498 const UTF8* source = *sourceStart;