[svn:parrot] r47259 - branches/gsoc_nfg/src/string

darbelo at svn.parrot.org darbelo at svn.parrot.org
Tue Jun 1 15:53:39 UTC 2010


Author: darbelo
Date: Tue Jun  1 15:53:39 2010
New Revision: 47259
URL: https://trac.parrot.org/parrot/changeset/47259

Log:
Add a macro to help us determine if a given codepoint is a combinig character or not.

Modified:
   branches/gsoc_nfg/src/string/grapheme.h

Modified: branches/gsoc_nfg/src/string/grapheme.h
==============================================================================
--- branches/gsoc_nfg/src/string/grapheme.h	Tue Jun  1 15:53:07 2010	(r47258)
+++ branches/gsoc_nfg/src/string/grapheme.h	Tue Jun  1 15:53:39 2010	(r47259)
@@ -31,6 +31,11 @@
 
 typedef struct grapheme_table_t grapheme_table;
 
+#define ISCOMBINING(c) ( (0x0299 < (c) &&  (c) < 0x0370)\
+                      || (0x1dbf < (c) &&  (c) < 0x1e00)\
+                      || (0x20cf < (c) &&  (c) < 0x2100)\
+                      || (0xfe1f < (c) &&  (c) < 0xfe30))
+
 /* HEADERIZER BEGIN: src/string/grapheme.c */
 /* HEADERIZER END: src/string/grapheme.c */
 


More information about the parrot-commits mailing list