#include <MboStrList.h>


Public Member Functions | |
| CStrList () | |
| CStrList (const std::deque2< MboString > &other) | |
| CStrList (const MboString &str) | |
| virtual | ~CStrList () | 
| MboString | ToCStr (const MboString &strSplit=",") const | 
| virtual bool | add_if_prefix_match (const MboString &strValue, const MboString &strPrefix, bool bCaseSensitive=false, bool bOnlyNew=false) | 
| CStrList & | operator= (const std::deque< MboString > &values) | 
Static Public Member Functions | |
| static int | Explode (const char *szInput, const char *szSplit, CStrList &vstrResult, bool bClearInput=true, bool bTrim=false) | 
| static int | Explode (const MboString &strInput, const MboString &strSplit, CStrList &vstrResult, bool bClearInput=true, bool bTrim=false) | 
| static int | ExplodeZZString (const char *szList, CStrList &vstrResult, bool bClearInput=true, bool bTrim=false) | 
SUPPORT_IOSTREAM. Definition at line 76 of file MboStrList.h.
| mbo::CStrList::CStrList | ( | ) | 
empty default constructor
| mbo::CStrList::CStrList | ( | const std::deque2< MboString > & | other | ) | 
copy constructor also takes base type
| mbo::CStrList::CStrList | ( | const MboString & | str | ) |  [explicit] | 
        
construct string list from single value.
| virtual mbo::CStrList::~CStrList | ( | ) |  [virtual] | 
        
virtual destructor
Make flat string from list.
<value1> "," <value2> ...
| strSplit | The string used to split the single values | 
| static int mbo::CStrList::Explode | ( | const char * | szInput, | |
| const char * | szSplit, | |||
| CStrList & | vstrResult, | |||
| bool |  bClearInput = true,  | 
        |||
| bool |  bTrim = false | |||
| ) |  [static] | 
        
Exlode a string split by another string into a string list.
The input string is split at every occurance of szSplit which will not be included in the any of the resulting string parts stored in the list.
| szInput | Input string | |
| szSplit | String used to split the input | 
| vstrResult | Resulting string list | 
| bClearInput | Whether vstrResult should be cleared or not (defaults to true)  | |
| bTrim | Whether to trim the resulting string parts. | 
The function cannot be used to split strings split by double zero characters. For that
| static int mbo::CStrList::Explode | ( | const MboString & | strInput, | |
| const MboString & | strSplit, | |||
| CStrList & | vstrResult, | |||
| bool |  bClearInput = true,  | 
        |||
| bool |  bTrim = false | |||
| ) |  [static] | 
        
Exlode a string split by another string into a string list.
The input string is split at every occurance of szSplit which will not be included in the any of the resulting string parts stored in the list.
| strInput | Input string | |
| strSplit | String used to split the input | 
| vstrResult | Resulting string list | 
| bClearInput | Whether vstrResult should be cleared or not (defaults to true)  | |
| bTrim | Whether to trim the resulting string parts. | 
The function cannot be used to split strings split by double zero characters. For that
| static int mbo::CStrList::ExplodeZZString | ( | const char * | szList, | |
| CStrList & | vstrResult, | |||
| bool |  bClearInput = true,  | 
        |||
| bool |  bTrim = false | |||
| ) |  [static] | 
        
Convert a list of c strings (zero terminated) that is terminated by an empty string (e.g. two zero characters '\0') into a CStrList.
| szList | input list terminated by two zero characters. | 
| vstrResult | will retrieve the result | 
| bClearInput | whether or not the vstrResult has to be cleared before inserting the contents of szList | |
| bTrim | Whether to trim the resulting string parts. | 
| virtual bool mbo::CStrList::add_if_prefix_match | ( | const MboString & | strValue, | |
| const MboString & | strPrefix, | |||
| bool |  bCaseSensitive = false,  | 
        |||
| bool |  bOnlyNew = false | |||
| ) |  [virtual] | 
        
Add a value if it matches a given prefix.
| strValue | Value to insert | |
| strPrefix | Prefix to match | |
| bCaseSensitive | Whether or not comaprison is done case sensitive. | |
| bOnlyNew | Add value only if it is new to the list. | 
true if the value is added false otherwise. std::deque based assignment
if you want to assign container with other value types you must use std::map2::operatot<<
| values | container with elements to assign | 
| Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by   1.5.4 |