Searched refs:ubuf (Results 1 – 1 of 1) sorted by relevance
/haiku/src/kits/storage/mime/ |
H A D | TextSnifferAddon.cpp | 149 my_unichar *ubuf = NULL; in file_ascmagic() local 175 if ((ubuf = (my_unichar*)malloc((nbytes + 1) * sizeof(ubuf[0]))) == NULL) in file_ascmagic() 184 if (looks_ascii(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() 188 } else if (looks_utf8(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() 192 } else if ((i = looks_unicode(buf, nbytes, ubuf, &ulen)) != 0) { in file_ascmagic() 200 } else if (looks_latin1(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() 204 } else if (looks_extended(buf, nbytes, ubuf, &ulen)) { in file_ascmagic() 211 if (looks_ascii(nbuf, nbytes, ubuf, &ulen)) { in file_ascmagic() 215 } else if (looks_latin1(nbuf, nbytes, ubuf, &ulen)) { in file_ascmagic() 238 if (*ubuf == '.') { in file_ascmagic() [all …]
|