diff options
author | Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> | 2016-05-27 14:28:30 +0100 |
---|---|---|
committer | Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> | 2016-05-27 14:28:30 +0100 |
commit | a9a31b1de5776a3b08a82101a4fa711294f0dd1d (patch) | |
tree | 159134a624e51509f40ed8823249f09a70d1dda3 /lib/unictype/bidi_name.c | |
parent | 5f2b09982312c98863eb9a8dfe2c608b81f58259 (diff) |
Imported Upstream version 0.9.6+really0.9.3upstream/0.9.6+really0.9.3
Diffstat (limited to 'lib/unictype/bidi_name.c')
-rw-r--r-- | lib/unictype/bidi_name.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/unictype/bidi_name.c b/lib/unictype/bidi_name.c index 847290cd..28bb4baa 100644 --- a/lib/unictype/bidi_name.c +++ b/lib/unictype/bidi_name.c @@ -1,5 +1,5 @@ -/* Bidi classes of Unicode characters. - Copyright (C) 2002, 2006, 2011-2015 Free Software Foundation, Inc. +/* Bidi categories of Unicode characters. + Copyright (C) 2002, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2002. This program is free software: you can redistribute it and/or modify it @@ -20,22 +20,16 @@ /* Specification. */ #include "unictype.h" -static const char u_bidi_class_name[19][4] = +static const char u_bidi_category_name[19][4] = { "L", "LRE", "LRO", "R", "AL", "RLE", "RLO", "PDF", "EN", "ES", "ET", "AN", "CS", "NSM", "BN", "B", "S", "WS", "ON" }; const char * -uc_bidi_class_name (int bidi_class) -{ - if (bidi_class >= 0 && bidi_class < sizeof (u_bidi_class_name) / sizeof (u_bidi_class_name[0])) - return u_bidi_class_name[bidi_class]; - return NULL; -} - -const char * uc_bidi_category_name (int category) { - return uc_bidi_class_name (category); + if (category >= 0 && category < sizeof (u_bidi_category_name) / sizeof (u_bidi_category_name[0])) + return u_bidi_category_name[category]; + return NULL; } |