On Tue, Apr 28, 2009 at 2:48 PM, Greg Spencer <[email protected]> wrote:
> So, I was unable to find the conversion utilities in base that do the > conversion to/from UTF8. What are they called? If I missed them (and I > looked for a while before I gave up), then maybe they need to be more > prominent? > See base/string_util.h, UTF8ToUTF16() etc. What is the danger here of being lazy? Is it that developers will > unwittingly do expensive conversions? > Yes, partly because including dedicated helpers like this makes it sound as if the class is somehow special-cased or fastpathed to deal better with these than a generic converter would be. The other argument is simply that converting utf8 to utf16 is a generic sort of functionality that belongs in base/ or another similar general-purpose location, rather than specifically in FilePath. PK --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
