|
Aegis
4.25.D505
|
#include <list.h>
Public Member Functions | |
| ~nstring_list () | |
| nstring_list () | |
| nstring_list (const nstring_list &arg) | |
| nstring_list (const string_list_ty &arg) | |
| nstring_list & | operator= (const nstring_list &) |
| void | push_front (const nstring &arg) |
| void | push_front (const nstring_list &arg) |
| void | push_back (const nstring &arg) |
| void | push_back (const nstring_list &arg) |
| void | push_back_unique (const nstring &arg) |
| void | push_back_unique (const nstring_list &arg) |
| void | pop_back (void) |
| const nstring | back (void) const |
| void | pop_front (void) |
| nstring | front (void) const |
| size_t | size (void) const |
| bool | empty (void) const |
| void | clear (void) |
| nstring | get (int n) const |
| nstring | operator[] (int n) const |
| void | split (const nstring &str, const char *sep=0, bool ewhite=false) |
| nstring | unsplit (const char *separator=0) const |
| nstring | unsplit (size_t begin, size_t length, const char *separator=0) const |
| bool | member (const nstring &arg) const |
| void | sort (void) |
| void | sort_version (void) |
| void | sort_nocase (void) |
| int | gmatch_pattern (const nstring &pattern) const |
| int | gmatch_candidate (const nstring &candidate) const |
| void | remove (const nstring &arg) |
| void | operator+= (const nstring_list &rhs) |
| nstring_list | operator+ (const nstring_list &rhs) const |
| void | operator-= (const nstring_list &rhs) |
| nstring_list | operator- (const nstring_list &rhs) const |
| void | operator*= (const nstring_list &rhs) |
| nstring_list | operator* (const nstring_list &rhs) const |
| bool | operator!= (const nstring_list &rhs) const |
| bool | operator== (const nstring_list &rhs) const |
Private Attributes | |
| string_list_ty | content |
The nstring_list class is used to represent a dynamically sized list of nstrings.
| nstring_list::~nstring_list | ( | ) | [inline] |
| nstring_list::nstring_list | ( | ) | [inline] |
| nstring_list::nstring_list | ( | const nstring_list & | arg | ) | [inline] |
| nstring_list::nstring_list | ( | const string_list_ty & | arg | ) | [inline] |
| const nstring nstring_list::back | ( | void | ) | const [inline] |
| void nstring_list::clear | ( | void | ) |
The clear method is used to discard all elemets of a string list.
| bool nstring_list::empty | ( | void | ) | const [inline] |
| nstring nstring_list::front | ( | void | ) | const [inline] |
| nstring nstring_list::get | ( | int | n | ) | const |
The get method is used to obtain the value of the nth element of a string list.
| int nstring_list::gmatch_candidate | ( | const nstring & | candidate | ) | const |
The gmatch_candidate method is used to determine if there is at least one member of the string list which matches the given pattern.
| candidate | This is the candidate string to be matched against each pattern in the string list. |
| int nstring_list::gmatch_pattern | ( | const nstring & | pattern | ) | const |
The gmatch_pattern method is used to determine if there is at least one member of the string list which matches the given pattern.
| pattern | This is a file globbing pattern, such as used by the shell for expanding file names. See glob(3) for a definition of the patterns. |
| bool nstring_list::member | ( | const nstring & | arg | ) | const |
The member method is used to test whether the given narrow string is present in the narrow string list,
| arg | The narrow string to look for. |
| bool nstring_list::operator!= | ( | const nstring_list & | rhs | ) | const |
The inequality operator is used to determine whether or not this string set is the same as another string set.
| rhs | The right hand side of the comparison |
| nstring_list nstring_list::operator* | ( | const nstring_list & | rhs | ) | const |
The multiply operator is used to perform a set intersection of this string list with another string list.
| rhs | The right has side of the string set intersection. |
| void nstring_list::operator*= | ( | const nstring_list & | rhs | ) |
The multiply-in-situ operator is used to perform an in-situ set intersection of this string list with another string list.
| rhs | The right has side of the string set intersection. |
| nstring_list nstring_list::operator+ | ( | const nstring_list & | rhs | ) | const |
The add operator is used to perform a set union of this string list with another string list.
| rhs | The right has side of the string set union. |
| void nstring_list::operator+= | ( | const nstring_list & | rhs | ) |
The add-in-situ operator is used to perform an in-situ set union of this string list with another string list.
| rhs | The right has side of the string set union. |
| nstring_list nstring_list::operator- | ( | const nstring_list & | rhs | ) | const |
The subtract operator is used to perform a set difference of this string list with another string list.
| rhs | The right has side of the string set difference. |
| void nstring_list::operator-= | ( | const nstring_list & | rhs | ) |
The subtract-in-situ operator is used to perform an in-situ set difference of this string list with another string list.
| rhs | The right has side of the string set difference. |
| nstring_list& nstring_list::operator= | ( | const nstring_list & | ) |
The assignment operator.
| bool nstring_list::operator== | ( | const nstring_list & | rhs | ) | const |
The equality operator is used to determine whether or not this string set is the same as another string set.
| rhs | The right hand side of the comparison |
| nstring nstring_list::operator[] | ( | int | n | ) | const [inline] |
| void nstring_list::pop_back | ( | void | ) | [inline] |
| void nstring_list::pop_front | ( | void | ) |
The pop_front method is used to discard the first value in the list. This has O(n) behaviour.
| void nstring_list::push_back | ( | const nstring & | arg | ) | [inline] |
| void nstring_list::push_back | ( | const nstring_list & | arg | ) |
The push_back method is used to append an nstring list onto the end of this list.
| arg | The strings to push |
| void nstring_list::push_back_unique | ( | const nstring & | arg | ) | [inline] |
| void nstring_list::push_back_unique | ( | const nstring_list & | arg | ) |
The push_back_unique method is used to add a list of strings to the end of a string list, provided it they aren't already in the list.
| void nstring_list::push_front | ( | const nstring & | arg | ) | [inline] |
| void nstring_list::push_front | ( | const nstring_list & | arg | ) | [inline] |
| void nstring_list::remove | ( | const nstring & | arg | ) |
The remove method is used to remove a string. It is not an error if the string is not present. This has O(n) behaviour.
| arg | The string value to be removed. |
| size_t nstring_list::size | ( | void | ) | const [inline] |
| void nstring_list::sort | ( | void | ) |
The sort method is used to perform an in situ sort the string list values in a string list. The comparison function used is strcmp.
| void nstring_list::sort_nocase | ( | void | ) |
The sort method is used to perform an in situ sort the string list values in a string list. The comparison function used is strcasecmp.
| void nstring_list::sort_version | ( | void | ) |
The sort method is used to perform an in situ sort the string list values in a string list. The comparison function used is strverscmp.
| void nstring_list::split | ( | const nstring & | str, |
| const char * | sep = 0, |
||
| bool | ewhite = false |
||
| ) |
The split method is used to replace the contents of the list with a new list, formed by splitting "str" into several pieces, separated by any pf the characters in "sep".
| str | The string to be split. |
| sep | The separators between each field. |
| ewhite | If true, get rid of extra white space at the beginning and end of each field. Default to false. |
| nstring nstring_list::unsplit | ( | const char * | separator = 0 | ) | const |
The unsplit method is used to form a single string by glueing all of the string list members together.
| separator | The string to place bewteen each list emlement |
| nstring nstring_list::unsplit | ( | size_t | begin, |
| size_t | length, | ||
| const char * | separator = 0 |
||
| ) | const |
The unsplit method is used to form a single string by glueing all of the string list members together.
| begin | The index of the first element to be joined |
| length | The number of elements to join together. |
| separator | The string to place bewteen each list element. |
string_list_ty nstring_list::content [private] |
1.7.6.1