|
Bsoft
2.1.0
Bernard's software package
|
Header file for the string class. More...
#include <iostream>#include <cstdio>#include <vector>Go to the source code of this file.
Classes | |
| class | Bstring |
Macros | |
| #define | MAX_FORMAT_SIZE 64 |
Functions | |
| 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 | string_sort (Bstring *slist, int descending, int value) |
| Sorts a list of strings in ascending (descending) lexical or value order. More... | |
Header file for the string class.
Definition in file Bstring.h.
| 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.
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.