MCPcopy Create free account
hub / github.com/MihailRis/voxelcore / is_integer

Method is_integer

src/util/stringutil.cpp:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool util::is_integer(const std::string& text) {
155 for (char c : text) {
156 if (c < '0' || c > '9')
157 return false;
158 }
159 return true;
160}
161
162bool util::is_integer(const std::wstring& text) {
163 for (wchar_t c : text) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected