From 2725314272231103731
X-Google-Thread: 7894ca11fe,b57b42a3a23f7d43
X-Google-Attributes: gid7894ca11fe,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!news.alt.net!frodo.cs.rpi.edu!not-for-mail
From: David Abrahams <dave@boostpro.com>
Newsgroups: comp.std.c++
Subject: Re: C++0x string conversions, etc.
Date: Sat, 29 Aug 2009 21:57:36 CST
Organization: bytemine - http://www.bytemine.net
Lines: 25
Sender: cppmods@cs.rpi.edu
Approved: james.dennett@gmail.com
Message-ID: <m2vdk6kz2l.fsf@boostpro.com>
References: <7.0.0.16.2.20090826221507.040f5928@aristeia.com>
 <c0d2765e-fd8f-4d5a-a705-fae3ecdee660@c2g2000yqi.googlegroups.com>
NNTP-Posting-Host: netlab.cs.rpi.edu
Content-Type: text/plain; charset=us-ascii
To: (Usenet)
Return-Path: <cppmods@ruralroute.cs.rpi.edu>
X-Original-Date: Sat, 29 Aug 2009 14:57:54 -0800
X-Submission-Address: std-c++@netlab.cs.rpi.edu
Xref: g2news2.google.com comp.std.c++:1326


on Fri Aug 28 2009, Mathias Gaunard <loufoque-AT-gmail.com> wrote:

> If you want smart iteration of UTF-8 or UTF-16 ranges, you need a
> conversion facility defined in terms of range adapters, not codecvt
> facets.

Hi Scott,

You might look at the unofficial components in
boost/regex/pending/unicode_iterator.hpp, namely u16_to_u32_iterator and
u8_to_u32_iterator.

Cheers,

--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



