diff options
author | behdad <behdad> | 2002-01-01 00:59:28 +0000 |
---|---|---|
committer | behdad <behdad> | 2002-01-01 00:59:28 +0000 |
commit | 52ac73796959aae40315b0958622b94d6cddab62 (patch) | |
tree | bb021bd0fc961ef7e207d0c315c3504f0d2b946b /fribidi_char_sets.h | |
parent | 37427f6ad8ebb94823d96edaddd4741303eec675 (diff) |
Old interface is back, new ones start with fribidix.
Diffstat (limited to 'fribidi_char_sets.h')
-rw-r--r-- | fribidi_char_sets.h | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/fribidi_char_sets.h b/fribidi_char_sets.h index f5e21d7..a4a9096 100644 --- a/fribidi_char_sets.h +++ b/fribidi_char_sets.h @@ -53,24 +53,26 @@ typedef enum FRIBIDI_CHARSET_CP1256, FRIBIDI_CHARSET_ISIRI_3342, + FRIBIDI_CHAR_SETS_NUM_PLUS_ONE, + FRIBIDI_CHARSET_DEFAULT = FRIBIDI_CHARSET_UTF8 } FriBidiCharSet; -#define FRIBIDI_CHAR_SETS_NUM 7 +#define FRIBIDI_CHAR_SETS_NUM (FRIBIDI_CHAR_SETS_NUM_PLUS_ONE - 1) /* Convert the character string "s" in charset "char_set" to unicode string "us" and return it's length. */ -int fribidi_charset_to_unicode (FriBidiCharSet char_set, char *s, int length, - /* output */ - FriBidiChar *us); +int fribidix_charset_to_unicode (FriBidiCharSet char_set, char *s, int length, + /* output */ + FriBidiChar *us); /* Convert the unicode string "us" with length "length" to character string "s" in charset "char_set" and return it's length. */ -int fribidi_unicode_to_charset (FriBidiCharSet char_set, FriBidiChar *us, - int length, - /* output */ - char *s); +int fribidix_unicode_to_charset (FriBidiCharSet char_set, FriBidiChar *us, + int length, + /* output */ + char *s); /* Return the string containing the name of the charset. */ char *fribidi_char_set_name (FriBidiCharSet char_set); @@ -94,6 +96,15 @@ boolean fribidi_char_set_leave (FriBidiCharSet char_set); /* Return the charset which name is "s". */ FriBidiCharSet fribidi_parse_charset (char *s); + +/* Old style, just for compatibility. do not use these. */ + +#define fribidi_charset_to_unicode(char_set, s, us) \ + fribidix_charset_to_unicode(char_set, s, strlen(s), us) + +#define fribidi_unicode_to_charset(char_set, us, length, s) \ + fribidix_unicode_to_charset(char_set, us, length, s) + #endif /* FRIBIDI_CHAR_SETS_H */ #endif |