chore: rename test files to snake_case and update string class docs

Rename indexOf.wren and startsWith.wren test files to index_of.wren and
starts_with.wren respectively, fix missing trailing newlines, update
string class documentation to clarify UTF-8 storage and move the
note about incorrect UTF-8 handling in the index operator, and
remove unnecessary parentheses in string_indexOf native return.
This commit is contained in:
Bob Nystrom
2015-01-12 03:13:15 +00:00
parent de5e69aab0
commit 6928ba9935
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -955,7 +955,7 @@ DEF_NATIVE(string_indexOf)
char* firstOccurrence = strstr(string->value, search->value);
RETURN_NUM(firstOccurrence ? (firstOccurrence - string->value) : -1);
RETURN_NUM(firstOccurrence ? firstOccurrence - string->value : -1);
}
DEF_NATIVE(string_startsWith)