From 1b8e640069d676ceb839b1edac6ce1fe45d8e35f Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 6 Jan 2016 06:45:52 -0500 Subject: [PATCH] Fixed spelling mistakes in comments --- .../java/src/com/openalpr/jni/json/JSONTokener.java | 8 ++++---- src/daemon.cpp | 2 +- src/main.cpp | 2 +- src/misc_utilities/binarizefontsheet.cpp | 2 +- src/misc_utilities/calibrate.cpp | 2 +- src/misc_utilities/prepcharsfortraining.cpp | 2 +- src/openalpr/postprocess/postprocess.cpp | 8 ++++---- src/openalpr/postprocess/postprocess.h | 2 +- src/openalpr/simpleini/simpleini.h | 4 ++-- src/openalpr/support/re2.h | 2 +- src/openalpr/support/re2/dfa.cc | 2 +- src/openalpr/support/re2/util/valgrind.h | 2 +- src/openalpr/support/windows/dirent.h | 4 ++-- src/tclap/ArgTraits.h | 2 +- src/tclap/CmdLine.h | 2 +- 15 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/bindings/java/src/com/openalpr/jni/json/JSONTokener.java b/src/bindings/java/src/com/openalpr/jni/json/JSONTokener.java index 74b3beb..c2e2db4 100644 --- a/src/bindings/java/src/com/openalpr/jni/json/JSONTokener.java +++ b/src/bindings/java/src/com/openalpr/jni/json/JSONTokener.java @@ -557,12 +557,12 @@ public class JSONTokener { /** * Advances past all input up to and including the next occurrence of - * {@code thru}. If the remaining input doesn't contain {@code thru}, the + * {@code through}. If the remaining input doesn't contain {@code through}, the * input is exhausted. */ - public void skipPast(String thru) { - int thruStart = in.indexOf(thru, pos); - pos = thruStart == -1 ? in.length() : (thruStart + thru.length()); + public void skipPast(String through) { + int throughStart = in.indexOf(through, pos); + pos = throughStart == -1 ? in.length() : (throughStart + through.length()); } /** diff --git a/src/daemon.cpp b/src/daemon.cpp index 92b0355..f248b03 100644 --- a/src/daemon.cpp +++ b/src/daemon.cpp @@ -104,7 +104,7 @@ int main( int argc, const char** argv ) if (cmd.parse( argc, argv ) == false) { - // Error occured while parsing. Exit now. + // Error occurred while parsing. Exit now. return 1; } diff --git a/src/main.cpp b/src/main.cpp index b8d1e27..1fc1183 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -92,7 +92,7 @@ int main( int argc, const char** argv ) if (cmd.parse( argc, argv ) == false) { - // Error occured while parsing. Exit now. + // Error occurred while parsing. Exit now. return 1; } diff --git a/src/misc_utilities/binarizefontsheet.cpp b/src/misc_utilities/binarizefontsheet.cpp index 4b15d0a..02f6a34 100644 --- a/src/misc_utilities/binarizefontsheet.cpp +++ b/src/misc_utilities/binarizefontsheet.cpp @@ -116,7 +116,7 @@ int main(int argc, char** argv) { if (cmd.parse( argc, argv ) == false) { - // Error occured while parsing. Exit now. + // Error occurred while parsing. Exit now. return 1; } diff --git a/src/misc_utilities/calibrate.cpp b/src/misc_utilities/calibrate.cpp index 392a13a..0f1edaf 100644 --- a/src/misc_utilities/calibrate.cpp +++ b/src/misc_utilities/calibrate.cpp @@ -282,7 +282,7 @@ int main(int argc, char** argv) { if (cmd.parse( argc, argv ) == false) { - // Error occured while parsing. Exit now. + // Error occurred while parsing. Exit now. return 1; } diff --git a/src/misc_utilities/prepcharsfortraining.cpp b/src/misc_utilities/prepcharsfortraining.cpp index 3b9fc09..c97f630 100644 --- a/src/misc_utilities/prepcharsfortraining.cpp +++ b/src/misc_utilities/prepcharsfortraining.cpp @@ -57,7 +57,7 @@ int main( int argc, const char** argv ) if (cmd.parse( argc, argv ) == false) { - // Error occured while parsing. Exit now. + // Error occurred while parsing. Exit now. return 1; } diff --git a/src/openalpr/postprocess/postprocess.cpp b/src/openalpr/postprocess/postprocess.cpp index b5768d0..878891f 100644 --- a/src/openalpr/postprocess/postprocess.cpp +++ b/src/openalpr/postprocess/postprocess.cpp @@ -122,13 +122,13 @@ namespace alpr newLetter.line_index = line_index; newLetter.charposition = charposition; newLetter.letter = letter; - newLetter.occurences = 1; + newLetter.occurrences = 1; newLetter.totalscore = score; letters[charposition].push_back(newLetter); } else { - letters[charposition][existingIndex].occurences = letters[charposition][existingIndex].occurences + 1; + letters[charposition][existingIndex].occurrences = letters[charposition][existingIndex].occurrences + 1; letters[charposition][existingIndex].totalscore = letters[charposition][existingIndex].totalscore + score; } } @@ -181,7 +181,7 @@ namespace alpr for (int i = 0; i < letters.size(); i++) { for (int j = 0; j < letters[i].size(); j++) - cout << "PostProcess Line " << letters[i][j].line_index << " Letter: " << letters[i][j].charposition << " " << letters[i][j].letter << " -- score: " << letters[i][j].totalscore << " -- occurences: " << letters[i][j].occurences << endl; + cout << "PostProcess Line " << letters[i][j].line_index << " Letter: " << letters[i][j].charposition << " " << letters[i][j].letter << " -- score: " << letters[i][j].totalscore << " -- occurrences: " << letters[i][j].occurrences << endl; } } @@ -260,7 +260,7 @@ namespace alpr { if (letters[i].size() > 0) { - totalScore += (letters[i][0].totalscore / letters[i][0].occurences) + config->postProcessMinConfidence; + totalScore += (letters[i][0].totalscore / letters[i][0].occurrences) + config->postProcessMinConfidence; numScores++; } } diff --git a/src/openalpr/postprocess/postprocess.h b/src/openalpr/postprocess/postprocess.h index 69a9300..d6a6bb2 100644 --- a/src/openalpr/postprocess/postprocess.h +++ b/src/openalpr/postprocess/postprocess.h @@ -43,7 +43,7 @@ namespace alpr int line_index; int charposition; float totalscore; - int occurences; + int occurrences; }; struct PPResult diff --git a/src/openalpr/simpleini/simpleini.h b/src/openalpr/simpleini/simpleini.h index 160d53d..7ec6bf9 100644 --- a/src/openalpr/simpleini/simpleini.h +++ b/src/openalpr/simpleini/simpleini.h @@ -2972,7 +2972,7 @@ class SI_ConvertW // This uses the Unicode reference implementation to do the // conversion from UTF-8 to wchar_t. The required files are // ConvertUTF.h and ConvertUTF.c which should be included in - // the distribution but are publically available from unicode.org + // the distribution but are publicly available from unicode.org // at http://www.unicode.org/Public/PROGRAMS/CVTUTF/ ConversionResult retval; const UTF8 * pUtf8 = (const UTF8 *) a_pInputData; @@ -3065,7 +3065,7 @@ class SI_ConvertW // This uses the Unicode reference implementation to do the // conversion from wchar_t to UTF-8. The required files are // ConvertUTF.h and ConvertUTF.c which should be included in - // the distribution but are publically available from unicode.org + // the distribution but are publicly available from unicode.org // at http://www.unicode.org/Public/PROGRAMS/CVTUTF/ ConversionResult retval; UTF8 * pUtf8 = (UTF8 *) a_pOutputData; diff --git a/src/openalpr/support/re2.h b/src/openalpr/support/re2.h index bad75bb..8fb8f72 100644 --- a/src/openalpr/support/re2.h +++ b/src/openalpr/support/re2.h @@ -504,7 +504,7 @@ class RE2 { // to string "out". // Returns true on success. This method can fail because of a malformed // rewrite string. CheckRewriteString guarantees that the rewrite will - // be sucessful. + // be successful. bool Rewrite(string *out, const StringPiece &rewrite, const StringPiece* vec, diff --git a/src/openalpr/support/re2/dfa.cc b/src/openalpr/support/re2/dfa.cc index d1e31c3..e595a78 100644 --- a/src/openalpr/support/re2/dfa.cc +++ b/src/openalpr/support/re2/dfa.cc @@ -1294,7 +1294,7 @@ DFA::State* DFA::StateSaver::Restore() { // inline it to create the specialized ones. // // Note that matches are delayed by one byte, to make it easier to -// accomodate match conditions depending on the next input byte (like $ and \b). +// accommodate match conditions depending on the next input byte (like $ and \b). // When s->next[c]->IsMatch(), it means that there is a match ending just // *before* byte c. diff --git a/src/openalpr/support/re2/util/valgrind.h b/src/openalpr/support/re2/util/valgrind.h index ca10b1a..07bbfe5 100644 --- a/src/openalpr/support/re2/util/valgrind.h +++ b/src/openalpr/support/re2/util/valgrind.h @@ -4224,7 +4224,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...) /* These requests allow control to move from the simulated CPU to the - real CPU, calling an arbitary function. + real CPU, calling an arbitrary function. Note that the current ThreadId is inserted as the first argument. So this call: diff --git a/src/openalpr/support/windows/dirent.h b/src/openalpr/support/windows/dirent.h index 92adcd1..0329df1 100644 --- a/src/openalpr/support/windows/dirent.h +++ b/src/openalpr/support/windows/dirent.h @@ -559,7 +559,7 @@ dirent_next( } else { - /* The very last entry has been processed or an error occured */ + /* The very last entry has been processed or an error occurred */ FindClose (dirp->handle); dirp->handle = INVALID_HANDLE_VALUE; p = NULL; @@ -837,7 +837,7 @@ dirent_wcstombs_s( { mbstr[n] = '\0'; } - /* Lenght of resulting multi-bytes string WITH zero-terminator */ + /* Length of resulting multi-bytes string WITH zero-terminator */ if (pReturnValue) { *pReturnValue = n + 1; diff --git a/src/tclap/ArgTraits.h b/src/tclap/ArgTraits.h index adbf0d5..b81a0e2 100644 --- a/src/tclap/ArgTraits.h +++ b/src/tclap/ArgTraits.h @@ -44,7 +44,7 @@ struct ValueLike /** * A string like argument value type is a value that can be set using - * operator=(string). Usefull if the value type contains spaces which + * operator=(string). Useful if the value type contains spaces which * will be broken up into individual tokens by operator>>. */ struct StringLike diff --git a/src/tclap/CmdLine.h b/src/tclap/CmdLine.h index c1f4159..4d3a18a 100644 --- a/src/tclap/CmdLine.h +++ b/src/tclap/CmdLine.h @@ -120,7 +120,7 @@ class CmdLine : public CmdLineInterface /** * A list of Visitors to be explicitly deleted when the destructor - * is called. At the moment, these are the Vistors created for the + * is called. At the moment, these are the Visitors created for the * default Args. */ std::list _visitorDeleteOnExitList;