|
Boost : |
From: Peter Bindels (dascandy_at_[hidden])
Date: 2007-06-23 03:46:27
On 23/06/07, Mathias Gaunard <mathias.gaunard_at_[hidden]> wrote:
> Peter Bindels wrote:
> > When searching ASCII text, it's
> > equal;
>
> Not if you handle grapheme clusters.
>
> If your text is "abcfoôdef", with ô coded as o + combining accent, then
> searching for "foo" shouldn't work, since you would only find part of
> the grapheme cluster and possibly do weird things if for example the
> substring is removed.
Combining accents, nor in fact any character with accent, were in
ASCII last time I checked.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk