PikaStdData_String_Util.h 883 B

1234567891011121314151617181920
  1. #include <ctype.h>
  2. #if PIKA_STRING_UTF8_ENABLE
  3. int _valid_utf8(const char *string, int length);
  4. int _utf8_get(const char *string, int length, int at, char *out_buf);
  5. int _utf8_get_offset(const char *string, int length, int at, int *out_char_len);
  6. int _utf8_strlen(const char *string, int length);
  7. int __str_repl(PikaObj *self, char *str, int str_len, int repl_at, int repl_len, char *val, int val_len);
  8. int __utf8_to_utf32_LE_withBOM(const char *utf8, int len, char *out_buf);
  9. int __utf8_to_utf32_LE_noBOM(const char *utf8, int len, char *out_buf);
  10. int __utf8_to_utf32_LE_noBOM_get_size(const char *utf8, int len);
  11. int __utf8_to_utf16_LE_withBOM(const char *utf8, int len, char *out_buf);
  12. int __utf8_to_utf16_LE_noBOM(const char *utf8, int len, char *out_buf);
  13. int __utf8_to_utf16_LE_noBOM_get_size(const char *utf8, int len);
  14. Arg* _str_encode(char*str, char*encoding);
  15. #endif