about summary refs log tree commit diff
path: root/libidn/iconvme.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-02-22 01:25:57 +0000
committerUlrich Drepper <drepper@redhat.com>2005-02-22 01:25:57 +0000
commit777bc09586f66bbc38741dcad44a56db74e90e3b (patch)
treef38fd5133ab242c67dc2f9b0b3413de43ca7426a /libidn/iconvme.h
parent4379b403412eff757728a57d33bfdd66eebda62a (diff)
downloadglibc-777bc09586f66bbc38741dcad44a56db74e90e3b.tar.gz
glibc-777bc09586f66bbc38741dcad44a56db74e90e3b.tar.xz
glibc-777bc09586f66bbc38741dcad44a56db74e90e3b.zip
* iconvme.h: New file, extracted from toutf8.c but improved.
	* iconvme.c: New file.
	* toutf8.c: Include stringprep.h first, to make the compiler check
	that stringprep.h is standalone.  Improve comments.  Replace
	#include of errno.h and sys/param.h with iconvme.h.  Don't define
	ICONV_CONST.
	(stringprep_convert): Rewrite to use iconvme.h.
Diffstat (limited to 'libidn/iconvme.h')
-rw-r--r--libidn/iconvme.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libidn/iconvme.h b/libidn/iconvme.h
new file mode 100644
index 0000000000..3eb9b32b49
--- /dev/null
+++ b/libidn/iconvme.h
@@ -0,0 +1,25 @@
+/* Recode strings between character sets, using iconv.
+   Copyright (C) 2004 Free Software Foundation, Inc.
+   Written by Simon Josefsson.
+
+   This program 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.1, or (at your option)
+   any later version.
+
+   This program 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 program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+
+#ifndef ICONVME_H
+# define ICONVME_H
+
+extern char *iconv_string (const char *string, const char *from_code,
+			   const char *to_code);
+
+#endif /* ICONVME_H */