diff options
author | Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> | 2016-05-26 16:48:15 +0100 |
---|---|---|
committer | Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> | 2016-05-26 16:48:15 +0100 |
commit | 5f2b09982312c98863eb9a8dfe2c608b81f58259 (patch) | |
tree | e5d38581c2f36e1cca02efedd2d85044d77f76f9 /lib/unictype/bidi_test.c | |
parent | 3e0814cd9862b89c7a39672672937477bd87ddfb (diff) |
Imported Upstream version 0.9.6upstream/0.9.6
Diffstat (limited to 'lib/unictype/bidi_test.c')
-rw-r--r-- | lib/unictype/bidi_test.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/unictype/bidi_test.c b/lib/unictype/bidi_test.c index 0a9fa5c9..c9b1a450 100644 --- a/lib/unictype/bidi_test.c +++ b/lib/unictype/bidi_test.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 @@ -21,7 +21,13 @@ #include "unictype.h" bool +uc_is_bidi_class (ucs4_t uc, int bidi_class) +{ + return (uc_bidi_class (uc) == bidi_class); +} + +bool uc_is_bidi_category (ucs4_t uc, int category) { - return (uc_bidi_category (uc) == category); + return uc_is_bidi_class (uc, category); } |