MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_string

Method get_string

modules/regex/regex.cpp:117–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117String RegExMatch::get_string(const Variant &p_name) const {
118 int id = _find(p_name);
119
120 if (id < 0) {
121 return String();
122 }
123
124 int start = data[id].start;
125
126 if (start == -1) {
127 return String();
128 }
129
130 int length = data[id].end - start;
131
132 return subject.substr(start, length);
133}
134
135int RegExMatch::get_start(const Variant &p_name) const {
136 int id = _find(p_name);

Callers 8

parseMethod · 0.45
try_parseMethod · 0.45
test_regex.hFile · 0.45
test_tcp_server.hFile · 0.45
test_stream_peer.hFile · 0.45
test_packet_peer.hFile · 0.45

Calls 2

substrMethod · 0.80
StringClass · 0.50

Tested by 1

try_parseMethod · 0.36