X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.h;h=d2b39ef50b27c72f8a503e1040ff5dc5421c9ea9;hb=086322fd8c85a303ba6f552950d6f057f2867add;hp=ddfd2f82b77e1e7b83098541636fdb5c5f2facc0;hpb=b19d2d4b3a4176869c6ba164f7a67ed3b11146ca;p=pspp-builds.git diff --git a/src/libpspp/str.h b/src/libpspp/str.h index ddfd2f82..d2b39ef5 100644 --- a/src/libpspp/str.h +++ b/src/libpspp/str.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2009, 2010, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -85,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 *); @@ -97,7 +98,7 @@ void ss_truncate (struct substring *, size_t); size_t ss_rtrim (struct substring *, struct substring trim_set); size_t ss_ltrim (struct substring *, struct substring trim_set); void ss_trim (struct substring *, struct substring trim_set); -bool ss_chomp (struct substring *, char); +bool ss_chomp_byte (struct substring *, char); bool ss_separate (struct substring src, struct substring delimiters, size_t *save_idx, struct substring *token); bool ss_tokenize (struct substring src, struct substring delimiters, @@ -176,7 +177,7 @@ void ds_truncate (struct string *, size_t); size_t ds_rtrim (struct string *, struct substring trim_set); size_t ds_ltrim (struct string *, struct substring trim_set); size_t ds_trim (struct string *, struct substring trim_set); -bool ds_chomp (struct string *, char); +bool ds_chomp_byte (struct string *, char); bool ds_separate (const struct string *src, struct substring delimiters, size_t *save_idx, struct substring *token); bool ds_tokenize (const struct string *src, struct substring delimiters,