Hi Robert,

2010/12/13 Robert Osfield <[email protected]>:
> What value add would this have over std::string?
>
> Personally I'd rather keep to just using std:: containers where
> possible.  Only when we really have to am I happy to have us start
> creating our own containers.
>

I'm arguing with my parter on this, too. An ideal situation at last should be:

osgDB::readNodeFile( "a_chinese_or_japanese_string" );

And the osgDB back-end can parse it from current system code page into
wide characters and send to following file handlers. There are two
ways to achieve this: a String class encapsulating related methods, or
just some conversion functions like present convertUtf8ToUtf16().

I personally prefer the second way and think that the conversion can
be done without user interfering. The String class can be used in user
level, too, but it seems to be a little superfluous for a rendering
engine. We could just keep everything in our hands in this case. :-)

Cheers,

Wang Rui
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to