Lines Matching full:uint32
44 const uint32 kREPLACEMENT_CHARACTER = 0x0000FFFD;
50 static uint32 strlenAsUint32(const char *s)
53 uint32 lengthAsUint32 = 0;
102 static uint32 Extract_SystemEncoding (const dng_string &dngString,
134 // - Casting the result of strlen() to a uint32 may case truncation. (Use
140 uint32 aSize = (uint32) strlen (otherString);
145 uint32 aBufSize = aSize * 6 + 256;
203 static uint32 Extract_Multibyte (const dng_string &dngString,
212 // conversion to uint32 is also problematic.
214 // return (uint32) aOutput;" may be problematic.
217 uint32 aSize = dngString.Length ();
222 uint32 aBufSize = (aSize * 2) + 256;
263 buffer.Allocate ((uint32) (aOutput + 1));
271 return (uint32) aOutput;
305 static uint32 Extract_SystemEncoding (const dng_string &dngString,
391 static uint32 Extract_Multibyte (const dng_string &dngString,
402 // trigger implicit conversions of int to uint32 that may be problematic.
405 // - The conversion of aResult to a uint32 in the return statement may be
439 return (uint32) aResult;
453 static uint32 Extract_SystemEncoding (const dng_string &dngString,
593 uint32 newLen = (s != NULL ? strlenAsUint32 (s) : 0);
609 uint32 oldLen = Length ();
626 for (uint32 k = 0; k <= newLen; k++)
663 uint32 len = strlenAsUint32 (s);
670 const uint32 destBufferLength = SafeUint32Add (SafeUint32Mult (len, 3), 1);
679 uint32 aChar = DecodeUTF8 (s, (uint32) (sEnd - s));
757 uint32 dng_string::Get_SystemEncoding (dng_memory_data &buffer) const
763 uint32 len = Length ();
765 const uint32 destBufferLength = SafeUint32Add (len, 1);
821 uint32 len = strlenAsUint32 (s);
823 const uint32 destBufferLength = SafeUint32Add (len, 1);
912 uint32 dng_string::DecodeUTF8 (const char *&s,
913 uint32 maxBytes,
936 uint32 aChar = nBuf [0];
938 uint32 aSize = gUTF8Bytes [aChar];
956 for (uint32 extra = 1; extra < aSize; extra++)
1000 aChar = ((aChar << 6) + nBuf [1]) - (uint32) 0x00003080UL;
1010 << 6) + nBuf [2]) - (uint32) 0x000E2080UL;
1021 << 6) + nBuf [3]) - (uint32) 0x03C82080UL;
1049 uint32 len = strlenAsUint32 (s);
1058 (void) DecodeUTF8 (s, (uint32) (sEnd - s), &isValid);
1101 uint32 dng_string::Get_UTF16 (dng_memory_data &buffer) const
1104 uint32 count = 0;
1111 uint32 x = DecodeUTF8 (sPtr);
1130 const uint32 destBufferLength = SafeUint32Add (count, 1);
1141 uint32 x = DecodeUTF8 (sPtr);
1203 uint32 length16 = 0;
1212 const uint32 destBufferSize =
1222 uint32 aChar = *s++;
1232 uint32 aLow = *s;
1328 void dng_string::Truncate (uint32 maxBytes)
1331 uint32 len = Length ();
1366 uint32 len = strlenAsUint32 (s);
1419 uint32 dng_string::Length () const
1517 uint32 len1 = Length ();
1519 uint32 len2 = strlenAsUint32 (s);
1563 uint32 len1 = Length ();
1565 uint32 len2 = strlenAsUint32 (s);
1572 uint32 offsets = len1 - len2;
1574 for (uint32 offset = 0; offset <= offsets; offset++)
1628 uint32 len1 = Length ();
1630 uint32 len2 = strlenAsUint32 (old_string);
1631 uint32 len3 = strlenAsUint32 (new_string);
1652 uint32 extra = len1 - match_offset - len2 + 1; // + 1 for NULL termination
1654 for (uint32 j = 0; j < extra; j++)
1687 uint32 extra = len1 - match_offset - len2 + 1; // + 1 for NULL termination
1729 uint32 len2 = strlenAsUint32 (s);
1734 uint32 len1 = Length ();
1761 uint32 len = Length ();
1765 for (uint32 j = 0; j < len; j++)
1791 uint32 len = Length ();
1795 for (uint32 j = 0; j < len; j++)
1917 uint32 c = DecodeUTF8 (sPtr);
1959 uint32 unicode;
2072 uint32 tempBufferSize =
2084 uint32 x = DecodeUTF8 (sPtr);
2099 const uint32 kTableEntrys = sizeof (kUnicodeToLowASCII ) /
2102 for (uint32 entry = 0; entry < kTableEntrys; entry++)
2173 uint32 aLenA = this->Get_UTF16 (aStrA);
2174 uint32 aLenB = s .Get_UTF16 (aStrB);
2261 uint32 aLenA = this->Get_UTF16 (aStrA);
2262 uint32 aLenB = s .Get_UTF16 (aStrB);
2327 for (uint32 pass = 0; pass < 2; pass++)
2346 uint32 a = DecodeUTF8 (aPtr);
2347 uint32 b = DecodeUTF8 (bPtr);
2354 if (a >= (uint32) 'a' && a <= (uint32) 'z')
2356 a = a - (uint32) 'a' + (uint32) 'A';
2359 if (b >= (uint32) 'a' && b <= (uint32) 'z')
2361 b = b - (uint32) 'a' + (uint32) 'A';