summaryrefslogtreecommitdiff
path: root/src/fbasicstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-07-31 07:50:54 +0000
committerMike Buland <eichlan@xagasoft.com>2009-07-31 07:50:54 +0000
commit63c5f358e696298950dd03db431b92d4decd015a (patch)
tree5c8db031d9de4ca008a6affda076b6de8f089b29 /src/fbasicstring.h
parent745a9ec043fdbe91faf26a3cfec4ecd12355f94a (diff)
downloadlibbu++-63c5f358e696298950dd03db431b92d4decd015a.tar.gz
libbu++-63c5f358e696298950dd03db431b92d4decd015a.tar.bz2
libbu++-63c5f358e696298950dd03db431b92d4decd015a.tar.xz
libbu++-63c5f358e696298950dd03db431b92d4decd015a.zip
Added a character based splitting function to FBasicString and made more of the
parsing functions publicly accessible in Url, and added some more helpers.
Diffstat (limited to 'src/fbasicstring.h')
-rw-r--r--src/fbasicstring.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fbasicstring.h b/src/fbasicstring.h
index b232005..6b681dd 100644
--- a/src/fbasicstring.h
+++ b/src/fbasicstring.h
@@ -1051,6 +1051,21 @@ namespace Bu
1051 return pFirst->pData; 1051 return pFirst->pData;
1052 } 1052 }
1053 1053
1054 Bu::List<MyType> split( const chr c ) const
1055 {
1056 Bu::List<MyType> ret;
1057 const_iterator l, r;
1058 l = begin();
1059 for(r=l; l;)
1060 {
1061 for( r = l; r && r != c; r++ );
1062 ret.append( MyType( l, r ) );
1063 l = r;
1064 l++;
1065 }
1066 return ret;
1067 }
1068
1054 /** 1069 /**
1055 * Plus equals operator for FString. 1070 * Plus equals operator for FString.
1056 *@param pData (const chr *) The data to append to your FString. 1071 *@param pData (const chr *) The data to append to your FString.