[haiku-commits] Re: r40174 - haiku/trunk/src/servers/app

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 09 Jan 2011 13:16:53 +0100

mmlr@xxxxxxxx wrote:
> +inline bool
> +render_as_zero_width(uint32 glyphCode)
> +{
> +     // ignorable chars: render as invisible
> +     // as per Unicode DerivedCoreProperties.txt: 
> Default_Ignorable_Code_Point
> +     return (glyphCode == 0x00ad)
> +                     // soft hyphen

While I think BUnicodeChar may already provide this functionality, I 
guess checking the "normal" ISO character span first may speed things 
up a bit, if needed.

Bye,
   Axel.


Other related posts: