MCPcopy Create free account
hub / github.com/beefytech/Beef / StringView

Class StringView

BeefySysLib/util/String.h:17–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15struct StringSplitEnumerator;
16
17class StringView
18{
19public:
20 enum CompareKind
21 {
22 CompareKind_CurrentCulture = 0,
23 CompareKind_CurrentCultureIgnoreCase = 1,
24 CompareKind_InvariantCulture = 2,
25 CompareKind_InvariantCultureIgnoreCase = 3,
26 CompareKind_Ordinal = 4,
27 CompareKind_OrdinalIgnoreCase = 5,
28 };
29
30public:
31 const char* mPtr;
32 intptr mLength;
33
34public:
35 struct iterator
36 {
37 public:
38 typedef std::random_access_iterator_tag iterator_category;
39 typedef char value_type;
40 typedef intptr difference_type;
41
42 typedef char* pointer;
43 typedef char& reference;
44
45 public:
46 char* mPtr;
47
48 public:
49 iterator(char* ptr)
50 {
51 mPtr = ptr;
52 }
53
54 iterator& operator++()
55 {
56 mPtr++;
57 return *this;
58 }
59
60 iterator operator++(int)
61 {
62 auto prevVal = *this;
63 mPtr++;
64 return prevVal;
65 }
66
67 bool operator!=(const iterator& itr) const
68 {
69 return itr.mPtr != mPtr;
70 }
71
72 bool operator==(const iterator& itr) const
73 {
74 return itr.mPtr == mPtr;

Callers 15

Gfx_ApplyEffectFunction · 0.85
GetRelativePathMethod · 0.85
GetStringViewMethod · 0.85
GetNextStringViewMethod · 0.85
operator*Method · 0.85
operator->Method · 0.85
GetDisplayInfoMethod · 0.85
IsLambdaMethod · 0.85
HotReplaceMethodsMethod · 0.85
GetOldSourceCommandMethod · 0.85
ToStringViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected