android_system_core/base/include/base
Spencer Low d21dc825bb adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()
Now that we have a more standardized API (also available in Chromium),
switch to it. Another benefit is real error handling instead of just
killing the process on invalid Unicode.

Make UTF8ToWide()/WideToUTF8() set errno to EILSEQ on bad input. This is
the same error code that wcsrtombs(3) uses.

Update the unittest to check for EILSEQ.

Change-Id: Ie92acf74d37adaea116cf610c1bf8cd433741e16
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-12 17:13:08 -08:00
..
file.h Add ReadFully and WriteFully to libbase. 2015-04-24 21:57:16 -07:00
logging.h base logging: fix errno restoring, severity conditionality, dangling ifs 2015-09-21 12:46:12 -07:00
macros.h Revert "Turn on -Wformat-nonliteral." 2015-07-09 20:35:09 +00:00
memory.h Add base/memory.h. 2015-04-09 17:00:14 -07:00
parseint.h Fix ParseInt/ParseUint to handle explicit "0x" hex. 2015-11-02 09:01:53 -08:00
stringprintf.h Revert "Turn on -Wformat-nonliteral." 2015-07-09 20:35:09 +00:00
strings.h Make Join support string delimiters 2015-11-02 11:04:34 -08:00
test_utils.h libbase_test: win32: get some tests working 2015-08-03 10:54:17 -07:00
utf8.h adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8() 2015-11-12 17:13:08 -08:00