mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 09:17:57 +00:00
added starts_with
This commit is contained in:
5
util.cpp
5
util.cpp
@@ -1079,6 +1079,11 @@ EX string eval_programmable_string(const string& fmt) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX bool starts_with(const char *c, const char *token) {
|
||||||
|
while(*token && *c == *token) c++, token++;
|
||||||
|
return !*token;
|
||||||
|
}
|
||||||
|
|
||||||
EX void floyd_warshall(vector<vector<char>>& v) {
|
EX void floyd_warshall(vector<vector<char>>& v) {
|
||||||
int N = isize(v);
|
int N = isize(v);
|
||||||
for(int k=0; k<N; k++)
|
for(int k=0; k<N; k++)
|
||||||
|
Reference in New Issue
Block a user