OpenMS
2.7.0
|
Utilities operating on lists of Strings. More...
#include <OpenMS/DATASTRUCTURES/StringListUtils.h>
Type definitions | |
typedef std::vector< String >::iterator | Iterator |
Mutable iterator. More... | |
typedef std::vector< String >::const_iterator | ConstIterator |
Non-mutable iterator. More... | |
typedef std::vector< String >::reverse_iterator | ReverseIterator |
Mutable reverse iterator. More... | |
typedef std::vector< String >::const_reverse_iterator | ConstReverseIterator |
Non-mutable reverse iterator. More... | |
static StringList | fromQStringList (const QStringList &rhs) |
Creates a StringList from a QStringList. More... | |
Search methods | |
static Iterator | searchPrefix (const Iterator &start, const Iterator &end, const String &text, bool trim=false) |
Searches for the first line that starts with text beginning at line start . More... | |
static ConstIterator | searchPrefix (const ConstIterator &start, const ConstIterator &end, const String &text, bool trim=false) |
Searches for the first line that starts with text beginning at line start . More... | |
static ConstIterator | searchPrefix (const StringList &container, const String &text, bool trim=false) |
Searches for the first line that starts with text in the StringList container . More... | |
static Iterator | searchPrefix (StringList &container, const String &text, bool trim=false) |
Searches for the first line that starts with text in the StringList container . More... | |
static Iterator | searchSuffix (const Iterator &start, const Iterator &end, const String &text, bool trim=false) |
Searches for the first line that ends with text beginning at line start . More... | |
static ConstIterator | searchSuffix (const ConstIterator &start, const ConstIterator &end, const String &text, bool trim=false) |
Searches for the first line that ends with text beginning at line start . More... | |
static ConstIterator | searchSuffix (const StringList &container, const String &text, bool trim=false) |
Searches for the first line that ends with text in the StringList container . More... | |
static Iterator | searchSuffix (StringList &container, const String &text, bool trim=false) |
Searches for the first line that ends with text in the StringList container . More... | |
static void | toUpper (StringList &sl) |
Transforms all strings contained in the passed StringList to upper case. More... | |
static void | toLower (StringList &sl) |
Transforms all strings contained in the passed StringList to lower case. More... | |
INTERNAL | StringListUtils () |
hide c'tors to avoid instantiation of utils class More... | |
StringListUtils (const StringListUtils &) | |
StringListUtils & | operator= (StringListUtils &) |
Utilities operating on lists of Strings.
typedef std::vector<String>::const_iterator ConstIterator |
Non-mutable iterator.
typedef std::vector<String>::const_reverse_iterator ConstReverseIterator |
Non-mutable reverse iterator.
typedef std::vector<String>::reverse_iterator ReverseIterator |
Mutable reverse iterator.
|
inlineprivate |
hide c'tors to avoid instantiation of utils class
|
inlineprivate |
|
static |
Creates a StringList from a QStringList.
|
inlineprivate |
|
static |
Searches for the first line that starts with text
beginning at line start
.
start | Iterator pointing to the initial position to search. (note: that this does not need to correspond to the beginning of the container. |
end | Iterator pointing to the end final position of the sequence to search. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Searches for the first line that starts with text
beginning at line start
.
start | Iterator pointing to the initial position to search. (note: that this does not need to correspond to the beginning of the container. |
end | Iterator pointing to the end final position of the sequence to search. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Searches for the first line that starts with text
in the StringList container
.
container | The StringList that should be searched. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Searches for the first line that starts with text
in the StringList container
.
container | The StringList that should be searched. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Searches for the first line that ends with text
beginning at line start
.
start | Iterator pointing to the initial position to search. (note: that this does not need to correspond to the beginning of the container. |
end | Iterator pointing to the end final position of the sequence to search. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Searches for the first line that ends with text
beginning at line start
.
start | Iterator pointing to the initial position to search. (note: that this does not need to correspond to the beginning of the container. |
end | Iterator pointing to the end final position of the sequence to search. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Searches for the first line that ends with text
in the StringList container
.
container | The StringList that should be searched. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Searches for the first line that ends with text
in the StringList container
.
container | The StringList that should be searched. |
text | The text to find |
trim | Whether the line is trimmed before |
|
static |
Transforms all strings contained in the passed StringList to lower case.
The | StringList to convert to lower case. |
|
static |
Transforms all strings contained in the passed StringList to upper case.
sl | The StringList to convert to upper case. |