X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.h;h=c691f9f292b2194d54093f384b4b7892614b6469;hb=687c1acdbeecd7d0d7fdc4143d444e8b1563b532;hp=ecf9e6eb3fe44cb2fb9658cf539a797433ead671;hpb=d8493b3b0617cc447446a70b031a69079bc19002;p=pspp-builds.git diff --git a/src/libpspp/str.h b/src/libpspp/str.h index ecf9e6eb..c691f9f2 100644 --- a/src/libpspp/str.h +++ b/src/libpspp/str.h @@ -23,6 +23,7 @@ #include #include #include +#include #include "compiler.h" #include "memcasecmp.h" @@ -84,6 +85,7 @@ struct substring ss_tail (struct substring, size_t); struct pool; void ss_alloc_substring (struct substring *, struct substring); void ss_alloc_uninit (struct substring *, size_t); +void ss_realloc (struct substring *, size_t); void ss_alloc_substring_pool (struct substring *, struct substring, struct pool *); void ss_alloc_uninit_pool (struct substring *, size_t, struct pool *); @@ -127,6 +129,13 @@ int ss_equals (struct substring, struct substring); int ss_equals_case (struct substring, struct substring); size_t ss_pointer_to_position (struct substring, const char *); char *ss_xstrdup (struct substring); + +/* UTF-8. */ +ucs4_t ss_first_mb (struct substring); +int ss_first_mblen (struct substring); +ucs4_t ss_get_mb (struct substring *); +ucs4_t ss_at_mb (struct substring, size_t ofs); +int ss_at_mblen (struct substring, size_t ofs); /* Variable length strings. */