Permalink
Browse files

Cosmetics: StringUtils.cpp fix typos in comments and indentation

  • Loading branch information...
1 parent 4d7bfbb commit bc09ae17ffddad42d48e133be87be645fce2bf88 @Karlson2k Karlson2k committed Oct 2, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 xbmc/utils/StringUtils.cpp
@@ -255,7 +255,7 @@ int StringUtils::SplitString(const CStdString& input, const CStdString& delimite
newPos = input.Find (delimiter, iPos + sizeS2);
}
- // numFound is the number of delimeters which is one less
+ // numFound is the number of delimiters which is one less
// than the number of substrings
unsigned int numFound = positions.size();
if (iMaxStrings > 0 && numFound >= iMaxStrings)
@@ -308,7 +308,7 @@ vector<string> StringUtils::Split(const CStdString& input, const CStdString& del
return strArray;
}
-// returns the number of occurences of strFind in strInput.
+// returns the number of occurrences of strFind in strInput.
int StringUtils::FindNumber(const CStdString& strInput, const CStdString &strFind)
{
int pos = strInput.Find(strFind, 0);
@@ -690,8 +690,8 @@ size_t StringUtils::utf8_strlen(const char *s)
size_t length = 0;
while (*s)
{
- if ((*s++ & 0xC0) != 0x80)
- length++;
- }
- return length;
+ if ((*s++ & 0xC0) != 0x80)
+ length++;
+ }
+ return length;
}

0 comments on commit bc09ae1

Please sign in to comment.