mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-14 17:47:19 +00:00
Convert tostring.cpp from C++ to C.
This commit is contained in:
+12
-3
@@ -458,7 +458,10 @@ namespace ucd
|
||||
*
|
||||
* @return The string representation, or "-" if the value is not recognized.
|
||||
*/
|
||||
const char *get_category_group_string(category_group c);
|
||||
inline const char *get_category_group_string(category_group c)
|
||||
{
|
||||
return ucd_get_category_group_string((ucd_category_group)c);
|
||||
}
|
||||
|
||||
/** @brief Unicode General Category Values
|
||||
* @see http://www.unicode.org/reports/tr44/
|
||||
@@ -511,7 +514,10 @@ namespace ucd
|
||||
*
|
||||
* @return The string representation, or "--" if the value is not recognized.
|
||||
*/
|
||||
const char *get_category_string(category c);
|
||||
inline const char *get_category_string(category c)
|
||||
{
|
||||
return ucd_get_category_string((ucd_category)c);
|
||||
}
|
||||
|
||||
/** @brief Lookup the General Category Group for a General Category.
|
||||
*
|
||||
@@ -716,7 +722,10 @@ namespace ucd
|
||||
*
|
||||
* @return The string representation, or "----" if the value is not recognized.
|
||||
*/
|
||||
const char *get_script_string(script s);
|
||||
inline const char *get_script_string(script s)
|
||||
{
|
||||
return ucd_get_script_string((ucd_script)s);
|
||||
}
|
||||
|
||||
/** @brief Lookup the Script for a Unicode codepoint.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user