1 /* 2 * Copyright 2014 Jonathan Schleifer <js@webkeks.org> 3 * Copyright 2014 Haiku, Inc. All rights reserved. 4 * 5 * Distributed under the terms of the MIT License. 6 * 7 * Authors: 8 * Jonathan Schleifer, js@webkeks.org 9 * John Scipione, jscipione@gmail.com 10 */ 11 #ifndef CONVERT_UTF_H 12 #define CONVERT_UTF_H 13 14 15 #include <SupportDefs.h> 16 17 18 ssize_t utf16le_to_utf8(const uint16* source, size_t sourceCodeUnitCount, 19 char* target, size_t targetLength); 20 21 ssize_t utf16be_to_utf8(const uint16* source, size_t sourceCodeUnitCount, 22 char* target, size_t targetLength); 23 24 25 #endif // CONVERT_UTF_H 26