X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.h;h=fd6e739b63d6b575f717bb4e3bdea1a6b5175a2e;hb=8e018d25310cb53e5339b46e95f0abe02db83782;hp=c3c008a61b24944c0c8dde085a39f56a7a24a874;hpb=b13f17becf74e4335c7e3206e4347cac07b38c56;p=pspp-builds.git diff --git a/src/libpspp/str.h b/src/libpspp/str.h index c3c008a6..fd6e739b 100644 --- a/src/libpspp/str.h +++ b/src/libpspp/str.h @@ -151,6 +151,11 @@ void ds_init_cstr (struct string *, const char *); void ds_destroy (struct string *); void ds_swap (struct string *, struct string *); +/* Pools. */ +struct pool; +void ds_register_pool (struct string *, struct pool *); +void ds_unregister_pool (struct string *, struct pool *); + /* Replacement. */ void ds_assign_string (struct string *, const struct string *); void ds_assign_substring (struct string *, struct substring); @@ -172,6 +177,7 @@ bool ds_separate (const struct string *src, struct substring delimiters, bool ds_tokenize (const struct string *src, struct substring delimiters, size_t *save_idx, struct substring *token); void ds_rpad (struct string *, size_t length, char pad); +void ds_set_length (struct string *, size_t new_length, char pad); /* Extracting substrings. */ struct substring ds_ss (const struct string *);