diff options
Diffstat (limited to '')
-rw-r--r-- | src/fstring.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h index 167c055..91251bc 100644 --- a/src/fstring.h +++ b/src/fstring.h | |||
@@ -916,6 +916,31 @@ namespace Bu | |||
916 | } | 916 | } |
917 | } | 917 | } |
918 | 918 | ||
919 | typedef chr *iterator; | ||
920 | typedef const chr *const_iterator; | ||
921 | |||
922 | iterator begin() | ||
923 | { | ||
924 | flatten(); | ||
925 | return pFirst->pData; | ||
926 | } | ||
927 | |||
928 | const_iterator begin() const | ||
929 | { | ||
930 | flatten(); | ||
931 | return pFirst->pData; | ||
932 | } | ||
933 | |||
934 | iterator end() | ||
935 | { | ||
936 | return pFirst->pData+pFirst->nLength; | ||
937 | } | ||
938 | |||
939 | const_iterator end() const | ||
940 | { | ||
941 | return pFirst->pData+pFirst->nLength; | ||
942 | } | ||
943 | |||
919 | private: | 944 | private: |
920 | void flatten() const | 945 | void flatten() const |
921 | { | 946 | { |