acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_want_to_remove_str_tokenizer.h
1#pragma once
2
3
4namespace str
5{
6
7
8 class CLASS_DECL_ACME tokenizer : public string
9 {
10 protected:
11
12
13 character_count m_nCurrentIndex;
14
15
16 public:
17
18
19 tokenizer(const ::scoped_string & scopedstrSrc);
20 tokenizer(const_char_pointer pch, ::i32 nLength );
21
22 tokenizer();
23 virtual ~tokenizer();
24
25
26 bool ReadLine(string & str,
27 bool bWithSeparator = false);
28 // _01Read read a token if find one of \n\r\t or space
29 bool _01Read(::i32 & i);
30 bool _01Read(::u32 & user);
31 bool _01ReadHex(::i32 & i);
32 bool _01ReadHex(::u32 & user);
33 //bool _01Read(char_pointer psz);
34
35 bool _01Read(string & str);
36 bool ExtractFolderPath(const ::scoped_string & scopedstrFilePath);
37
38 void Restart();
39 void Restart(string &strNew);
40 bool GetNextToken(string &strToken, const_char_pointer pszSeparator, bool bWithSeparator = false);
41
42 bool GetNextSmallestToken(string &strToken, const string_array_base & straSeparator, bool bWithSeparator = false);
43 // Any of separator character
44 bool GetNextTokenEx(string &strToken, const_char_pointer pszSeparator, bool bWithSeparator = false, bool bSkipAdjacent = false);
45
46 bool _001GetNextToken(string & strToken);
47
48 bool get_next_word(string * pstrToken = nullptr);
49
50 ::collection::count skip_word(::collection::count c);
51
52 string get_word();
53
54 };
55
56
57
58} // namespace string
59
60
61
Created by camilo on 2026-05-28 12:34 <3ThomasBorregaardSørensen!! Mummi!! Bilbo!!
Definition _.h:67