diff options
author | Ross Hadden <rosshadden@gmail.com> | 2017-09-21 23:58:29 -0400 |
---|---|---|
committer | Ross Hadden <rosshadden@gmail.com> | 2017-09-21 23:58:29 -0400 |
commit | 1a97d6455d05320eef5ab9da7a7b0528d791be4f (patch) | |
tree | 31313092761a97a6897ff1b2f1bbb919004c5630 /core/ustring.cpp | |
parent | d595b79c62a2db691f5b7314d365d3a57b601c18 (diff) | |
download | redot-engine-1a97d6455d05320eef5ab9da7a7b0528d791be4f.tar.gz |
Fixed a bunch of typos, including an error code.
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r-- | core/ustring.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 8273ed144b..b85996e3d1 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -1755,7 +1755,7 @@ static double built_in_strtod(const C *string, /* A decimal ASCII floating-point register int c; int exp = 0; /* Exponent read from "EX" field. */ int fracExp = 0; /* Exponent that derives from the fractional - * part. Under normal circumstatnces, it is + * part. Under normal circumstances, it is * the negative of the number of digits in F. * However, if I is very long, the last digits * of I get dropped (otherwise a long I with a @@ -2332,12 +2332,12 @@ int String::findn(String p_str, int p_from) const { int String::rfind(String p_str, int p_from) const { - //stabilish a limit + // establish a limit int limit = length() - p_str.length(); if (limit < 0) return -1; - //stabilish a starting point + // establish a starting point if (p_from < 0) p_from = limit; else if (p_from > limit) @@ -2347,7 +2347,7 @@ int String::rfind(String p_str, int p_from) const { int len = length(); if (src_len == 0 || len == 0) - return -1; //wont find anything! + return -1; // won't find anything! const CharType *src = c_str(); @@ -2378,12 +2378,12 @@ int String::rfind(String p_str, int p_from) const { } int String::rfindn(String p_str, int p_from) const { - //stabilish a limit + // establish a limit int limit = length() - p_str.length(); if (limit < 0) return -1; - //stabilish a starting point + // establish a starting point if (p_from < 0) p_from = limit; else if (p_from > limit) |