|
Bsoft
2.1.0
Bernard's software package
|
Functions in the string class. More...
#include <stdio.h>#include <string.h>#include <ctype.h>#include "Bstring.h"#include "utilities.h"Go to the source code of this file.
Functions | |
| Bstring | operator+ (const char *c, const Bstring &s) |
| istream & | operator>> (istream &input, Bstring &s) |
| ostream & | operator<< (ostream &output, Bstring &s) |
| Bstring * | string_add (Bstring **list, const char *string) |
| Adds a string to a linked list. More... | |
| Bstring * | string_add (Bstring **list, Bstring &string) |
| Bstring | string_catenate (Bstring *list) |
| Catenates a string linked list into one string. More... | |
| int | string_kill (Bstring *list) |
| Kills a string linked list. More... | |
| Bstring | parameter_file_path (Bstring filename) |
| Finds the parameter file path. More... | |
| int | QsortSmallToLargeString (const void *x, const void *y) |
| Utility function for sorting string lexically in qsort. More... | |
| int | QsortLargeToSmallString (const void *x, const void *y) |
| Utility function for sorting string lexically in qsort. More... | |
| int | QsortSmallToLargeStringValue (const void *x, const void *y) |
| Utility function for sorting string values in qsort. More... | |
| int | QsortLargeToSmallStringValue (const void *x, const void *y) |
| Utility function for sorting string values in qsort. More... | |
| int | string_sort (Bstring *slist, int descending, int value) |
| Sorts a list of strings in ascending (descending) lexical or value order. More... | |
Variables | |
| int | verbose |
Functions in the string class.
Definition in file Bstring.cpp.
Definition at line 689 of file Bstring.cpp.
| ostream& operator<< | ( | ostream & | output, |
| Bstring & | s | ||
| ) |
Definition at line 702 of file Bstring.cpp.
| istream& operator>> | ( | istream & | input, |
| Bstring & | s | ||
| ) |
Definition at line 695 of file Bstring.cpp.
Finds the parameter file path.
| &filename | the parameter filename. |
The parameter file path should primarily be defined in the environmental variable "BPARAM". Otherwise a default is used which may or may not be valid. The string returned has a length containing the path plus one byte.
Definition at line 795 of file Bstring.cpp.
| int QsortLargeToSmallString | ( | const void * | x, |
| const void * | y | ||
| ) |
Utility function for sorting string lexically in qsort.
| *x | first string pointer. |
| *y | second string pointer. |
Definition at line 836 of file Bstring.cpp.
| int QsortLargeToSmallStringValue | ( | const void * | x, |
| const void * | y | ||
| ) |
Utility function for sorting string values in qsort.
| *x | first string pointer. |
| *y | second string pointer. |
Definition at line 864 of file Bstring.cpp.
| int QsortSmallToLargeString | ( | const void * | x, |
| const void * | y | ||
| ) |
Utility function for sorting string lexically in qsort.
| *x | first string pointer. |
| *y | second string pointer. |
Definition at line 822 of file Bstring.cpp.
| int QsortSmallToLargeStringValue | ( | const void * | x, |
| const void * | y | ||
| ) |
Utility function for sorting string values in qsort.
| *x | first string pointer. |
| *y | second string pointer. |
Definition at line 850 of file Bstring.cpp.
Definition at line 719 of file Bstring.cpp.
Adds a string to a linked list.
| **list | the string linked list. |
| &string | string - unchanged. |
Definition at line 713 of file Bstring.cpp.
Catenates a string linked list into one string.
| *list | the string linked list. |
Definition at line 747 of file Bstring.cpp.
| int string_kill | ( | Bstring * | list | ) |
Kills a string linked list.
| *list | the string linked list. |
Definition at line 768 of file Bstring.cpp.
| int string_sort | ( | Bstring * | slist, |
| int | descending, | ||
| int | value | ||
| ) |
Sorts a list of strings in ascending (descending) lexical or value order.
| *slist | string list. |
| descending | flag to do a descending sort. |
| value | sort in value order. |
The string list is first convert to an array, quicksorted, and written back into the string list.
Definition at line 883 of file Bstring.cpp.
|
extern |