diff options
author | Linus Walleij <triad@df.lth.se> | 2007-02-05 18:22:27 +0000 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2007-02-05 18:22:27 +0000 |
commit | 7b7a0e2b9d465dad85dca593693280f1df79a74d (patch) | |
tree | 1021ee9b4668969b588190861566686ccbc63811 /src/unicode.h | |
parent | 2f45d224ce34d3fdc5eb255cde6ed9e2c407f218 (diff) | |
download | libmtp-7b7a0e2b9d465dad85dca593693280f1df79a74d.tar.gz |
LGPL boilerplates.
Diffstat (limited to 'src/unicode.h')
-rw-r--r-- | src/unicode.h | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/unicode.h b/src/unicode.h index 5ebfec5..1655c76 100644 --- a/src/unicode.h +++ b/src/unicode.h @@ -1,10 +1,39 @@ +/** + * \file unicode.h + * + * This file contains general Unicode string manipulation functions. + * It mainly consist of functions for converting between UCS-2 (used on + * the devices) and UTF-8 (used by several applications). + * + * For a deeper understanding of Unicode encoding formats see the + * Wikipedia entries for + * <a href="http://en.wikipedia.org/wiki/UTF-16/UCS-2">UTF-16/UCS-2</a> + * and <a href="http://en.wikipedia.org/wiki/UTF-8">UTF-8</a>. + * + * Copyright (C) 2005-2007 Linus Walleij <triad@df.lth.se> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + */ + #ifndef __MTP__UNICODE__H #define __MTP__UNICODE__H #include "config.h" -void unicode_init(LIBMTP_mtpdevice_t*); -void unicode_deinit(LIBMTP_mtpdevice_t*); int ucs2_strlen(uint16_t const * const); char *utf16_to_utf8(LIBMTP_mtpdevice_t*,const uint16_t*); |