Debian Codegraph @

melder/STRVEC.h

raw symbols SCIP
1 #cxx . . $ `<file>/melder/STRVEC.h`/pragma once
2 /* STRVEC.h
3 *
4 * Copyright (C) 1992-2023 Paul Boersma
5 *
6 * This code is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or (at
9 * your option) any later version.
10 *
11 * This code is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this work. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 autoSTRVECcxx . . $ autoSTRVEC# fileNames_STRVECcxx . . $ fileNames_STRVEC(d3c03a92d990d008). (conststring32cxx . . $ conststring32# path /* cattable */);
21 autoSTRVECcxx . . $ autoSTRVEC# folderNames_STRVECcxx . . $ folderNames_STRVEC(d3c03a92d990d008). (conststring32cxx . . $ conststring32# path /* cattable */);
22 autoSTRVECcxx . . $ autoSTRVEC# fileNames_caseInsensitive_STRVECcxx . . $ fileNames_caseInsensitive_STRVEC(d3c03a92d990d008). (conststring32cxx . . $ conststring32# path /* cattable */);
23 autoSTRVECcxx . . $ autoSTRVEC# folderNames_caseInsensitive_STRVECcxx . . $ folderNames_caseInsensitive_STRVEC(d3c03a92d990d008). (conststring32cxx . . $ conststring32# path /* cattable */);
24
25 autoSTRVECcxx . . $ autoSTRVEC# readLinesFromFile_STRVECcxx . . $ readLinesFromFile_STRVEC(963377c6631bedd0). (MelderFilecxx . . $ MelderFile# file);
26
27 autoSTRVECcxx . . $ autoSTRVEC# shuffle_STRVECcxx . . $ shuffle_STRVEC(6a8a775aea9c867b). (STRVECcxx . . $ STRVEC# const& x);
28 void shuffle_STRVEC_inoutcxx . . $ shuffle_STRVEC_inout(bedb44e9ae7c63cf). (STRVECcxx . . $ STRVEC# const& x);
29
30 autoSTRVECcxx . . $ autoSTRVEC# sort_STRVECcxx . . $ sort_STRVEC(6a8a775aea9c867b). (STRVECcxx . . $ STRVEC# const& a);
31 void sort_STRVEC_inoutcxx . . $ sort_STRVEC_inout(276ad51d55a4042f). (STRVECcxx . . $ STRVEC# const& a) noexcept;
32
33 autoSTRVECcxx . . $ autoSTRVEC# sort_numberAware_STRVECcxx . . $ sort_numberAware_STRVEC(6a8a775aea9c867b). (STRVECcxx . . $ STRVEC# const& a);
34 void sort_numberAware_STRVEC_inoutcxx . . $ sort_numberAware_STRVEC_inout(276ad51d55a4042f). (STRVECcxx . . $ STRVEC# const& a) noexcept;
35
36 /*
37 Regard a string as a sequence of tokens,
38 separated (and perhaps preceded and followed) by white space.
39 The tokens cannot contain spaces themselves (there are no escapes).
40 */
41 autoSTRVECcxx . . $ autoSTRVEC# splitByWhitespace_STRVECcxx . . $ splitByWhitespace_STRVEC(d3c03a92d990d008). (conststring32cxx . . $ conststring32# string);
42
43 /*
44 Regard a string as a sequence of tokens,
45 separated by commas (or another separator) according to RFC 1480.
46 Each token is optionally surrounded by double quotes,
47 in which case the token can contain a comma itself,
48 or even a double quote (which should be doubled to escape it),
49 or even a line separator.
50 Well-formed:
51 abc,"def" -> first token is abc, second token is def
52 abc,"""def""" -> first token is abc, second token is "def"
53 abc,"def""ghi" -> first token is abc, second token is def"ghi
54 Ill-formed:
55 abc,"def"ghi -> non-terminated quoted string
56 abc,def"ghi -> a quote in an unquoted string
57 abc,"def"ghi" -> second token def not followed by comma or end
58 Note that in a quoted string in PraatScript,
59 abc,"""def"""
60 would have to be written as
61 "abc,""""""def"""""""
62 in which case it would be much easier (if possible) to use a string vector:
63 { "abc", """def""" }
64 */
65 autoSTRVECcxx . . $ autoSTRVEC# splitBy_STRVECcxx . . $ splitBy_STRVEC(7166cd7864177c8). (conststring32cxx . . $ conststring32# string, conststring32cxx . . $ conststring32# separator);
66
67 /* End of file STRVEC.h */