diff options
author | Raiki Tamura <tamaron1203@gmail.com> | 2023-09-08 16:59:09 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-04 16:30:01 +0100 |
commit | 00dea7e8c41b672730d6e2c891b6012a83d8842c (patch) | |
tree | e06acd702f0bc7fc68d1406f7543b355680c8712 /libcpp/include/cpplib.h | |
parent | 4ded42c2c5a5c977dbf67b71c5d78f8a6dca7cbb (diff) | |
download | gcc-00dea7e8c41b672730d6e2c891b6012a83d8842c.zip gcc-00dea7e8c41b672730d6e2c891b6012a83d8842c.tar.gz gcc-00dea7e8c41b672730d6e2c891b6012a83d8842c.tar.bz2 |
libcpp: add function to check XID properties
This commit adds a new function intended for checking the XID properties
of a possibly unicode character, as well as the accompanying enum
describing the possible properties.
libcpp/ChangeLog:
* charset.cc (cpp_check_xid_property): New.
* include/cpplib.h
(cpp_check_xid_property): New.
(enum cpp_xid_property): New.
Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
Diffstat (limited to 'libcpp/include/cpplib.h')
-rw-r--r-- | libcpp/include/cpplib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index f699daa..5746aac 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -1631,4 +1631,11 @@ bool cpp_valid_utf8_p (const char *data, size_t num_bytes); bool cpp_is_combining_char (cppchar_t c); bool cpp_is_printable_char (cppchar_t c); +enum cpp_xid_property { + CPP_XID_START = 1, + CPP_XID_CONTINUE = 2 +}; + +unsigned int cpp_check_xid_property (cppchar_t c); + #endif /* ! LIBCPP_CPPLIB_H */ |