Lines Matching defs:length
66 int32 length;
71 case 0xd0: length = 2; break;
72 case 0xe0: length = 3; break;
75 length = 4;
85 for (;i < length && (bytes[i] & 0x80) > 0;i++)
88 if (i < length) {
93 *in += length;
121 UdfString::UdfString(const char *cs0, uint32 length)
126 SetTo(cs0, length);
149 uint32 length = strlen(utf8);
151 fUtf8String = new(nothrow) char[length + 1];
154 "] allocation failed\n", length + 1));
158 memcpy(fUtf8String, utf8, length + 1);
163 uint32 *raw = new(nothrow) uint32[length];
166 " string allocation failed\n", length));
175 for (uint32 i = 0; i < length && uint32(in - utf8) < length; i++, rawLength++)
238 UdfString::SetTo(const char *cs0, uint32 length)
240 DEBUG_INIT_ETC("UdfString", ("cs0: %p, length: %" B_PRIu32, cs0, length));
243 if (length == 0)
250 // First copy the Cs0 string and length
251 fCs0String = new(nothrow) char[length];
253 memcpy(fCs0String, cs0, length);
254 fCs0Length = length;
256 PRINT(("new fCs0String[%" B_PRIu32 "] allocation failed\n", length));
273 int32 maxLength = length-1; // Max length of input string in uint8 characters
295 int32 maxLength = (length-1) / 2; // Max length of input string in uint16 characters