Lolly 1.4.28
|
Go to the source code of this file.
Functions | |
bool | is_iso_alpha (char c) |
Checks if a character is an ISO alphabetic character. | |
bool | is_iso_locase (char c) |
Checks if a character is an ISO lowercase alphabetic character. | |
bool | is_iso_upcase (char c) |
Checks if a character is an ISO uppercase alphabetic character. | |
bool | is_alpha (string s) |
Checks if a string contains only alphabetic characters. | |
bool | is_alphanum (string s) |
bool | is_locase_alpha (string s) |
Checks if a string contains only lowercase alphabetic characters. | |
bool | is_iso_alpha (string s) |
Checks if a string contains only ISO alphabetic characters. | |
bool | is_numeric (string s) |
Checks if a string contains only numeric characters. | |
char | upcase (char c) |
Converts a lowercase character to uppercase. | |
char | locase (char c) |
Converts an uppercase character to lowercase. | |
char | closing_delimiter (char c) |
Finds the closing delimiter corresponding to the given opening delimiter. | |
string | upcase_first (string s) |
Converts the first character of a string to uppercase. | |
string | locase_first (string s) |
Converts the first character of a string to lowercase. | |
string | upcase_all (string s) |
Converts all lowercase characters in a string to uppercase. | |
string | locase_all (string s) |
Converts all uppercase characters in a string to lowercase. | |
string | string_union (string s1, string s2) |
Union of two strings. | |
string | string_minus (string s1, string s2) |
Remove characters from one string that are in another string. | |
string | remove_prefix (string s, string prefix) |
Remove the prefix from s if matches. | |
string | remove_suffix (string s, string suffix) |
Remove the suffix from s if matches. | |
string | ispanish_to_spanish (string s) |
Convert ispanish string to Spanish string. | |
string | spanish_to_ispanish (string s) |
Convert Spanish string to ispanish string. | |
string | igerman_to_german (string s) |
Convert igerman string to german string. | |
string | german_to_igerman (string s) |
Convert german string to igerman string. | |
static char | il2_to_cork (char c) |
static char | cork_to_il2 (char c) |
string | il2_to_cork (string s) |
string | cork_to_il2 (string s) |
string | alpha_nr (int nr) |
Generates an alphabetic string for an integer. | |
string | Alpha_nr (int nr) |
Generates an uppercase alphabetic string for an integer. | |
string | fnsymbol_nr (int nr) |
Generates footnote symbols for a given integer. | |
string | raw_quote (string s) |
Add quotes around a string to indicate it's a string, not a symbol. | |
string | raw_unquote (string s) |
Remove quotes from a string label. | |
string | escape_sh (string s) |
Escape a string for use in shell scripts. | |
string | escape_generic (string s) |
Escape a string with generic escape sequences. | |
string | escape_verbatim (string s) |
Escape a string to be displayed verbatim. | |
string | escape_spaces (string s) |
Escape spaces in a string with a backslash. | |
string | dos_to_better (string s) |
Convert DOS line endings to more standard line endings. | |
string | unescape_guile (string s) |
Unescape a Guile-syntax string. | |
bool | test (string s, int i, const char *test) |
bool | test (string s, int i, string test) |
bool | starts (string s, const char *what) |
bool | starts (string s, const string what) |
bool | ends (string s, const char *what) |
bool | ends (string s, const string r) |
bool | read (string s, int &i, const char *test) |
bool | read (string s, string test) |
bool | read (string s, int &i, string test) |
bool | read_line (string s, int &i, string &result) |
bool | read_int (string s, int &i, int &result) |
bool | read_double (string s, int &i, double &result) |
bool | read_word (string s, int &i, string &result) |
bool | is_whitespace (string s) |
void | skip_spaces (string s, int &i) |
void | skip_whitespace (string s, int &i) |
void | skip_line (string s, int &i) |
void | skip_symbol (string s, int &i) |
string | convert_tabs_to_spaces (string s, int tw) |
Converts tabs in a string to spaces. | |
void | parse (string s, int &pos, QI &ret) |
void | parse (string s, int &pos, QN &ret) |
void | parse (string s, int &pos, HI &ret) |
void | parse (string s, int &pos, HN &ret) |
void | parse (string s, int &pos, SI &ret) |
void | parse (string s, int &pos, SI *&a, int len) |
int | index_of (string s, char c) |
int | search_forwards (array< string > a, int pos, string in) |
int | search_forwards (string s, int pos, string in) |
int | search_forwards (string s, string in) |
bool | occurs (string what, string in) |
bool | contains (string s, string what) |
bool | contains (string s, char c) |
int | search_backwards (string s, int pos, string in) |
int | search_backwards (string s, string in) |
int | count_occurrences (string s, string in) |
int | overlapping (string s1, string s2) |
string | replace (string s, string what, string by) |
static bool | match_wildcard (string s, int spos, string w, int wpos) |
bool | match_wildcard (string s, string w) |
int | find_non_alpha (string s, int pos, bool forward) |
array< string > | tokenize (string s, string sep) |
string | recompose (array< string > a, string sep) |
string | trim_spaces_left (string s) |
string | trim_spaces_right (string s) |
string | trim_spaces (string s) |
array< string > | trim_spaces (array< string > a) |
static int | find_longest (string s1, string s2, int &c1, int &c2) |
static void | find_common (string s1, string s2, int &c1, int &c2) |
array< int > | differences (string s1, string s2) |
the differences between two strings by identifying the common substrings and returning the different sections' indices. | |
int | distance (string s1, string s2) |
a measure of difference (distance) between two strings. | |
void | parse_length (string s, double &len, string &unit) |
Parses a string containing a length value and its unit. | |
Variables | |
static string | il2_to_cork_string |
static string | cork_to_il2_string |
bool is_iso_alpha | ( | char | c | ) |
Checks if a character is an ISO alphabetic character.
c | The character to be checked. |
Definition at line 21 of file analyze.cpp.
bool is_iso_locase | ( | char | c | ) |
Checks if a character is an ISO lowercase alphabetic character.
c | The character to check. |
Definition at line 28 of file analyze.cpp.
bool is_iso_upcase | ( | char | c | ) |
Checks if a character is an ISO uppercase alphabetic character.
c | The character to check. |
Definition at line 35 of file analyze.cpp.
bool is_alpha | ( | string | s | ) |
Checks if a string contains only alphabetic characters.
s | The string to check. |
Definition at line 46 of file analyze.cpp.
bool is_alphanum | ( | string | s | ) |
Definition at line 55 of file analyze.cpp.
bool is_locase_alpha | ( | string | s | ) |
Checks if a string contains only lowercase alphabetic characters.
s | The string to check. |
Definition at line 64 of file analyze.cpp.
bool is_iso_alpha | ( | string | s | ) |
Checks if a string contains only ISO alphabetic characters.
s | The string to check. |
Definition at line 73 of file analyze.cpp.
bool is_numeric | ( | string | s | ) |
Checks if a string contains only numeric characters.
s | The string to check. |
Definition at line 82 of file analyze.cpp.
Converts a lowercase character to uppercase.
c | The character to convert. |
Definition at line 95 of file analyze.cpp.
Converts an uppercase character to lowercase.
c | The character to convert. |
Definition at line 101 of file analyze.cpp.
Finds the closing delimiter corresponding to the given opening delimiter.
c | The opening delimiter character. |
Definition at line 107 of file analyze.cpp.
Converts the first character of a string to uppercase.
s | The string to convert. |
Definition at line 115 of file analyze.cpp.
Converts the first character of a string to lowercase.
s | The string to convert. |
Definition at line 121 of file analyze.cpp.
Converts all lowercase characters in a string to uppercase.
s | The string to convert. |
Definition at line 127 of file analyze.cpp.
Converts all uppercase characters in a string to lowercase.
s | The string to convert. |
Definition at line 137 of file analyze.cpp.
Union of two strings.
This function performs the union operation between two strings.
s1 | The first string. |
s2 | The second string. |
Definition at line 151 of file analyze.cpp.
Remove characters from one string that are in another string.
s1 | The first string. |
s2 | The second string. |
Definition at line 156 of file analyze.cpp.
Remove the prefix from s if matches.
s | the string |
prefix | the prefix |
Definition at line 168 of file analyze.cpp.
Remove the suffix from s if matches.
s | the string |
prefix | the suffix |
Definition at line 175 of file analyze.cpp.
Convert ispanish string to Spanish string.
s | The ispanish string. |
Definition at line 186 of file analyze.cpp.
Convert Spanish string to ispanish string.
s | The Spanish string. |
Definition at line 244 of file analyze.cpp.
Definition at line 341 of file analyze.cpp.
Definition at line 348 of file analyze.cpp.
Definition at line 355 of file analyze.cpp.
Definition at line 364 of file analyze.cpp.
string alpha_nr | ( | int | nr | ) |
Generates an alphabetic string for an integer.
nr | The integer to be converted to an alphabetic string. |
Definition at line 377 of file analyze.cpp.
string Alpha_nr | ( | int | nr | ) |
Generates an uppercase alphabetic string for an integer.
nr | The integer to be converted to an alphabetic string. |
Definition at line 385 of file analyze.cpp.
string fnsymbol_nr | ( | int | nr | ) |
Generates footnote symbols for a given integer.
nr | The integer to be converted to a footnote symbol. |
Definition at line 390 of file analyze.cpp.
Add quotes around a string to indicate it's a string, not a symbol.
This function is used for marking the label of a STRING tree as representing a string and not a symbol.
s | The input string. |
Definition at line 420 of file analyze.cpp.
Remove quotes from a string label.
This function is used to get the string value of a STRING tree label representing a string.
s | The input string. |
Definition at line 426 of file analyze.cpp.
Escape a string for use in shell scripts.
s | The input string. |
Definition at line 437 of file analyze.cpp.
Escape a string with generic escape sequences.
s | The input string. |
Definition at line 469 of file analyze.cpp.
Escape a string to be displayed verbatim.
s | The input string. |
Definition at line 480 of file analyze.cpp.
Escape spaces in a string with a backslash.
s | The input string. |
Definition at line 492 of file analyze.cpp.
Convert DOS line endings to more standard line endings.
s | The input string. |
Definition at line 504 of file analyze.cpp.
Unescape a Guile-syntax string.
s | The input string. |
Definition at line 515 of file analyze.cpp.
Definition at line 566 of file analyze.cpp.
Definition at line 571 of file analyze.cpp.
Definition at line 602 of file analyze.cpp.
bool read_int | ( | string | s, |
int & | i, | ||
int & | result ) |
Definition at line 634 of file analyze.cpp.
bool read_double | ( | string | s, |
int & | i, | ||
double & | result ) |
Definition at line 651 of file analyze.cpp.
bool is_whitespace | ( | string | s | ) |
Definition at line 691 of file analyze.cpp.
Definition at line 698 of file analyze.cpp.
Definition at line 705 of file analyze.cpp.
Definition at line 712 of file analyze.cpp.
Definition at line 720 of file analyze.cpp.
Converts tabs in a string to spaces.
s | The original string with tabs. |
tw | The tab width. |
Definition at line 732 of file analyze.cpp.
Definition at line 755 of file analyze.cpp.
Definition at line 760 of file analyze.cpp.
Definition at line 788 of file analyze.cpp.
Searches for a substring in a string starting from a specified position, in reverse.
what_list | The substring to search for. |
pos | The starting position in the string to search from. |
in | The string to search in. |
Definition at line 811 of file analyze.cpp.
Searches for a substring in a string starting from a specified position.
what | The substring to search for. |
pos | The starting position in the string to search from. |
in | The string to search in. |
Definition at line 823 of file analyze.cpp.
Searches for a substring in a string.
what | The substring to search for. |
in | The string to search in. |
Definition at line 835 of file analyze.cpp.
Checks whether a substring occurs within another string.
what | The string to find. |
in | The string in which to search. |
Definition at line 840 of file analyze.cpp.
Definition at line 845 of file analyze.cpp.
Searches for a substring in a string starting from a specified position, in reverse.
s | The substring to search for. |
pos | The starting position in the string to search from. |
in | The string to search in. |
Definition at line 861 of file analyze.cpp.
Searches for a substring in a string, in reverse.
s | The substring to search for. |
in | The string to search in. |
Definition at line 870 of file analyze.cpp.
Counts the occurrences of a substring in a string.
s | The substring to count. |
in | The string to search in. |
Definition at line 875 of file analyze.cpp.
Finds the length of the longest string that is both a suffix of the first string and a prefix of the second string.
s1 | The first string. |
s2 | The second string. |
Definition at line 888 of file analyze.cpp.
Replaces all occurrences of a specific substring within a string.
s | The original string. |
what | The substring to replace. |
by | The string with which to replace the substring. |
Definition at line 899 of file analyze.cpp.
Definition at line 915 of file analyze.cpp.
Matches a string against a wildcard pattern.
s | The string to match. |
w | The wildcard pattern. |
Definition at line 930 of file analyze.cpp.
int find_non_alpha | ( | string | s, |
int | pos, | ||
bool | forward ) |
Finds the position of the first non-alphabetic character in a string.
s | The string to search. |
pos | The position from which to start the search. |
forward | True to search forward, false to search backward. |
Definition at line 935 of file analyze.cpp.
Splits a string into an array of strings based on a separator string.
s | The string to split. |
sep | The separator string. |
Definition at line 948 of file analyze.cpp.
Joins an array of strings into a single string, separated by a specific string.
a | The array of strings to join. |
sep | The separator string. |
Definition at line 963 of file analyze.cpp.
Removes all leading spaces from a string.
s | The string to trim. |
Definition at line 973 of file analyze.cpp.
Removes all trailing spaces from a string.
s | The string to trim. |
Definition at line 981 of file analyze.cpp.
Removes all leading and trailing spaces from a string.
s | The string to trim. |
Definition at line 989 of file analyze.cpp.
Removes all leading and trailing spaces from an array of strings.
a | The array of strings to trim. |
Definition at line 994 of file analyze.cpp.
Definition at line 1006 of file analyze.cpp.
Definition at line 1029 of file analyze.cpp.
the differences between two strings by identifying the common substrings and returning the different sections' indices.
s1 | The first string. |
s2 | The second string. |
Definition at line 1047 of file analyze.cpp.
a measure of difference (distance) between two strings.
s1 | The first string. |
s2 | The second string. |
Definition at line 1093 of file analyze.cpp.
Parses a string containing a length value and its unit.
[in] | s | The string to parse, e.g., "12.34cm". |
[out] | len | The parsed numerical value of the length. |
[out] | unit | The unit of the length as a string, e.g., "cm". |
Definition at line 1106 of file analyze.cpp.
|
static |
Definition at line 321 of file analyze.cpp.
|
static |
Definition at line 330 of file analyze.cpp.