aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/yahoo_util.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-01-24 12:28:13 +1300
committerJelmer Vernooij <jelmer@samba.org>2006-01-24 12:28:13 +1300
commit9fae35c9cf2d5a319623946705e5d7179ea5c338 (patch)
treec489bfe332588c4fb918b4759c3f89f8b4c0a75f /protocols/yahoo/yahoo_util.c
parent7308b63f3300d5b2a326edfde6c50a18bc05e3e5 (diff)
parent68c7c145c281fe3ae734b345bf133d70d1ef8652 (diff)
Merge from Wilmer
Diffstat (limited to 'protocols/yahoo/yahoo_util.c')
-rw-r--r--protocols/yahoo/yahoo_util.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/protocols/yahoo/yahoo_util.c b/protocols/yahoo/yahoo_util.c
index 3c99cf44..7babfa49 100644
--- a/protocols/yahoo/yahoo_util.c
+++ b/protocols/yahoo/yahoo_util.c
@@ -51,56 +51,6 @@ char * y_string_append(char * string, char * append)
return new_string;
}
-char * y_str_to_utf8(const char *in)
-{
- unsigned int n, i = 0;
- char *result = NULL;
-
- if(in == NULL || *in == '\0')
- return "";
-
- result = y_new(char, strlen(in) * 2 + 1);
-
- /* convert a string to UTF-8 Format */
- for (n = 0; n < strlen(in); n++) {
- unsigned char c = (unsigned char)in[n];
-
- if (c < 128) {
- result[i++] = (char) c;
- } else {
- result[i++] = (char) ((c >> 6) | 192);
- result[i++] = (char) ((c & 63) | 128);
- }
- }
- result[i] = '\0';
- return result;
-}
-
-char * y_utf8_to_str(const char *in)
-{
- int i = 0;
- unsigned int n;
- char *result = NULL;
-
- if(in == NULL || *in == '\0')
- return "";
-
- result = y_new(char, strlen(in) + 1);
-
- /* convert a string from UTF-8 Format */
- for (n = 0; n < strlen(in); n++) {
- unsigned char c = in[n];
-
- if (c < 128) {
- result[i++] = (char) c;
- } else {
- result[i++] = (c << 6) | (in[++n] & 63);
- }
- }
- result[i] = '\0';
- return result;
-}
-
#if !HAVE_GLIB
void y_strfreev(char ** vector)