Stuff Michael Meeks is doing |
Older items: 2009: ( J F ), 2008: ( J F M A M J J A S O N D ), 2007: ( J F M A M J J A S O N D ), 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, legacy html
all_whitespace) so:
while (p != end)
{
if (!g_ascii_isspace (*p))
return FALSE;
p = g_utf8_next_char (p);
}
3x faster:
while (p != end)
{
if (G_UNLIKELY (*p != ' ' && *p != '\t' && *p != '\n' && *p != '\r'))
return FALSE;
p++;
}
When parsing utf-8 text breaing on ASCII tokens, there is no need
to care at all about the wunder-non-ascii multi-byte-sequences; so
don't it really slows things down. Everyone trying to write utf-8
parsing code needs to type man utf-8 and read for a while
before typing.