[interfacekit] BString::CountChars()

I just committed a small change to BString::CountChars().  BGA gave me a 
spiffy little bit of code which calculates the length of a UTF-8 
character using just the first character, instead of iterating through 
every byte (which the existing implementation did).  That function, -- 
utf8_char_len() -- lives, appropriately enough, in UTF8.h, and is now 
used in BString::CountChars().  Whenever we get a unit test for 
CountChars() we can find out if it actually works. ;)

e

Necessity is the plea for every infringement of human freedom. It is the 
argument of tyrants; it is the creed of slaves.
        -William Pitt, British prime-minister (1759-1806)


Other related posts: