summaryrefslogtreecommitdiff
path: root/src/fbasicstring.h
diff options
context:
space:
mode:
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.