summaryrefslogtreecommitdiff
path: root/lib/unictype/bidi_name.c
diff options
context:
space:
mode:
authorManuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>2016-05-27 14:35:40 +0100
committerManuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>2016-05-27 14:35:40 +0100
commitb1de003dac299705a7f01c997d2b866bafe39926 (patch)
tree1cc16a3877e945116387a380f7f3023f81fa36e4 /lib/unictype/bidi_name.c
parent752fd7247bc223bcea35bd89cf56d1c08ead9ba6 (diff)
parent3590c846d4c2febbc05b4ad6b14a06edc549e453 (diff)
Merge tag 'upstream/0.9.6+really0.9.6'
Upstream version 0.9.6+really0.9.6
Diffstat (limited to 'lib/unictype/bidi_name.c')
-rw-r--r--lib/unictype/bidi_name.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/unictype/bidi_name.c b/lib/unictype/bidi_name.c
index 28bb4ba..847290c 100644
--- a/lib/unictype/bidi_name.c
+++ b/lib/unictype/bidi_name.c
@@ -1,5 +1,5 @@
-/* Bidi categories of Unicode characters.
- Copyright (C) 2002, 2006, 2009-2010 Free Software Foundation, Inc.
+/* Bidi classes of Unicode characters.
+ Copyright (C) 2002, 2006, 2011-2015 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,16 +20,22 @@
/* Specification. */
#include "unictype.h"
-static const char u_bidi_category_name[19][4] =
+static const char u_bidi_class_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_category_name (int category)
+uc_bidi_class_name (int bidi_class)
{
- if (category >= 0 && category < sizeof (u_bidi_category_name) / sizeof (u_bidi_category_name[0]))
- return u_bidi_category_name[category];
+ 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);
+}