Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 243 Bytes
Bool gelly::utils::stringStartsWith(String str, String prefix) {
if(prefix.length > str.length) {
return false;
}
for(Int i = 0; i < prefix.length; i++) {
if(prefix[i] != str[i]) {
return false;
}
}
return true;
}