Add UTF16ToUTF8AndAdjustOffset() to base/.
Currently, only UTF8ToUTF16 version is implemented. The converse version will
be required for an upcoming patch for supporting input methods in PPAPI
(crbug.com/59425), where WebKit strings (UTF16) with segmentation information
must be converted to PPAPI strings (UTF8).
BUG=
TEST=base_unittests
Review URL: http://codereview.chromium.org/7828092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100079 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed