Main Page | Class List | File List | Class Members | File Members

ipod_string.h

Go to the documentation of this file.
00001 /*
00002  * ipod_string.h
00003  *
00004  * Duane Maxwell
00005  * (c) 2005 by Linspire Inc
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00020  */
00021 
00022 #ifndef __IPOD_STRING_H__
00023 #define __IPOD_STRING_H__
00024 
00025 #include <sys/types.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00044 extern char *ipod_string_new(void);
00045 
00051 extern char *ipod_string_new_from(const char *s);
00052 
00059 extern char *ipod_string_new_from_array(const char *s, size_t length);
00060 
00067 extern char *ipod_string_set(char *s,const char *ss);
00068 
00073 extern void ipod_string_free(char *s);
00074 
00080 extern char *ipod_string_zero(char *s);
00081 
00088 extern char *ipod_string_realloc(char *src, size_t length);
00089 
00096 extern char *ipod_string_append(char *src,const char *a);
00097 
00104 extern void ipod_string_replace_char(char *src, const char a, const char b);
00105 
00112 extern size_t ipod_string_utf16_to_utf8_length(const char *src, size_t numChars);
00113 
00122 extern size_t ipod_string_utf16_to_utf8(const char *src, size_t numChars, char *dst, size_t maxLen);
00123 
00129 extern size_t ipod_string_utf8_to_utf16_length(const char *s);
00130 
00138 extern size_t ipod_string_utf8_to_utf16(const char *src, char *dst, size_t maxLen); // maxlen== number of characters
00139 
00146 extern char *ipod_string_utf8_from_utf16(const char *src,size_t numChars);
00147 
00154 extern char *ipod_string_utf16_from_utf8(const char *src,size_t *numChars);
00155 
00162 extern char *ipod_string_utf16_from_iso8859(const char *src,size_t *numChars);
00163 
00170 extern char *ipod_string_iso8859_from_utf16(const char *src,size_t numChars);
00171 
00177 extern char *ipod_string_utf8_from_iso8859(const char *src);
00178 
00184 extern char *ipod_string_iso8859_from_utf8(const char *src);
00185 
00194 extern int ipod_string_compare_utf16(const char *a, size_t numCharsA, const char *b, size_t numCharsB);
00195 
00198 extern void ipod_string_report(void);
00199 
00200 #ifdef __cplusplus
00201 };
00202 #endif
00203 
00204 #endif

Generated on Tue Dec 13 14:55:22 2005 for libipod by  doxygen 1.3.9.1