Home | History | Annotate | Download | only in Misc

Lines Matching refs:bytes

115     const UInt8 *bytes = [self bytes];
119 const char *p = (const char *)bytes;
175 const char *bytes = [self bytes];
177 const char *p = bytes;
201 p = bytes;
231 if ((length >= VCARD_HEADER_LENGTH) && strncmp(bytes, "BEGIN:VCARD", VCARD_HEADER_LENGTH) == 0) {
234 if ((length >= VCAL_HEADER_LENGTH) && strncmp(bytes, "BEGIN:VCALENDAR", VCAL_HEADER_LENGTH) == 0) {
241 char c = bytes[i];
254 if ((length >= JPEG_MAGIC_NUMBER_LENGTH) && strncmp(bytes, "\xFF\xD8\xFF\xE0", JPEG_MAGIC_NUMBER_LENGTH) == 0) {
275 const char *bytes = [self bytes];
276 return strncasecmp(bytes, string, [self length]) == 0;
279 static const UInt8 *_findEOL(const UInt8 *bytes, CFIndex len) {
293 UInt8 c = bytes[i];
294 if ('\n' == c) return bytes + i;
302 return bytes + i;
313 const UInt8 *bytes = [self bytes];
319 while ((eol = _findEOL(bytes, length))) {
320 const UInt8 *line = bytes;
321 SInt32 lineLength = eol - bytes;
323 // Move bytes to the character after the terminator as returned by _findEOL.
324 bytes = eol + 1;
325 if (('\r' == *eol) && ('\n' == *bytes)) {
326 bytes++; // Safe since _findEOL won't return a spanning CRLF.
329 length -= (bytes - line);
397 return [self length] > 0 && ((const char *)[self bytes])[0] == '\n';
402 const char *bytes = (const char *)[self bytes];
409 if (bytes[i] == '\n' && bytes[i+1] == '\n') {
414 if (bytes[i] == '\r' && bytes[i+1] == '\n') {
418 } else if (bytes[i] == '\n') {
421 } else if (bytes[i] == '\r' && bytes[i+1] == '\n') {