From b5f478cbcf573ca8328b7e9d4ad0d9d9070db929 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 24 Sep 2022 21:53:02 -0400 Subject: [PATCH] Fix typos in COLLADABaseUtils subdir Found via `codespell -q 3` --- COLLADABaseUtils/include/COLLADABUHashFunctions.h | 4 ++-- COLLADABaseUtils/include/COLLADABUStringUtils.h | 2 +- COLLADABaseUtils/include/COLLADABUUtils.h | 4 ++-- COLLADABaseUtils/include/Math/COLLADABUMathMatrix4.h | 6 +++--- COLLADABaseUtils/src/COLLADABUURI.cpp | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/COLLADABaseUtils/include/COLLADABUHashFunctions.h b/COLLADABaseUtils/include/COLLADABUHashFunctions.h index 91c52c0be..1d1b3f2ce 100644 --- a/COLLADABaseUtils/include/COLLADABUHashFunctions.h +++ b/COLLADABaseUtils/include/COLLADABUHashFunctions.h @@ -19,12 +19,12 @@ namespace COLLADABU { size_t calculateHash(const String& str); - /** Converts all lower case ASCII caracters to the corresponding upper case character befor calculating the hash.*/ + /** Converts all lower case ASCII characters to the corresponding upper case character before calculating the hash.*/ size_t calculateHashUpper(const String& str); size_t calculateHash(const char* str); - /** Converts all lower case ASCII caracters to the corresponding upper case character befor calculating the hash.*/ + /** Converts all lower case ASCII characters to the corresponding upper case character before calculating the hash.*/ size_t calculateHashUpper(const char* str); size_t calculateHash(const URI& uri); diff --git a/COLLADABaseUtils/include/COLLADABUStringUtils.h b/COLLADABaseUtils/include/COLLADABUStringUtils.h index 3ab47fff1..d3d93a134 100644 --- a/COLLADABaseUtils/include/COLLADABUStringUtils.h +++ b/COLLADABaseUtils/include/COLLADABUStringUtils.h @@ -39,7 +39,7 @@ namespace COLLADABU } /** - * Returns true, if both strings are equal. The comparison is case intensitive. + * Returns true, if both strings are equal. The comparison is case insensitive. */ static bool equalsIgnoreCase ( const WideString& s1, const WideString& s2 ); diff --git a/COLLADABaseUtils/include/COLLADABUUtils.h b/COLLADABaseUtils/include/COLLADABUUtils.h index c3266cec0..4fa8f4354 100644 --- a/COLLADABaseUtils/include/COLLADABUUtils.h +++ b/COLLADABaseUtils/include/COLLADABUUtils.h @@ -60,7 +60,7 @@ namespace COLLADABU static bool equals ( const String &str1, const String &str2 ); /** - * Returns true, if both strings are equal. The comparison is case intensitive. + * Returns true, if both strings are equal. The comparison is case insensitive. */ static bool equalsIgnoreCase ( const String& s1, const String& s2 ); @@ -160,7 +160,7 @@ namespace COLLADABU static void stringFindAndReplace ( String& source, const String searchString, const String replaceString ); /** - * Splits a string by the given seperator string and push the + * Splits a string by the given separator string and push the * parts in a vector. * @param String & text * @param String & separators diff --git a/COLLADABaseUtils/include/Math/COLLADABUMathMatrix4.h b/COLLADABaseUtils/include/Math/COLLADABUMathMatrix4.h index 198e9dcac..f747647d3 100644 --- a/COLLADABaseUtils/include/Math/COLLADABUMathMatrix4.h +++ b/COLLADABaseUtils/include/Math/COLLADABUMathMatrix4.h @@ -20,11 +20,11 @@ namespace COLLADABU namespace Math { - /** Class encapsulating a standard 4x4 homogenous matrix. + /** Class encapsulating a standard 4x4 homogeneous matrix. @remarks Math uses column vectors when applying matrix multiplications, This means a vector is represented as a single column, 4-row - matrix. This has the effect that the tranformations implemented + matrix. This has the effect that the transformations implemented by the matrices happens right-to-left e.g. if vector V is to be transformed by M1 then M2 then M3, the calculation would be M3 * M2 * M1 * V. The order that matrices are concatenated is @@ -354,7 +354,7 @@ namespace COLLADABU return !isEqualTo( m2 ); } - /** Tests if the matrix is the identity matrix. This is the prefered method to check for identity*/ + /** Tests if the matrix is the identity matrix. This is the preferred method to check for identity*/ inline bool isIdentiy() const { if ( mState == UNKNOWN ) diff --git a/COLLADABaseUtils/src/COLLADABUURI.cpp b/COLLADABaseUtils/src/COLLADABUURI.cpp index ae403d8aa..49a23d3f2 100644 --- a/COLLADABaseUtils/src/COLLADABUURI.cpp +++ b/COLLADABaseUtils/src/COLLADABUURI.cpp @@ -458,7 +458,7 @@ namespace COLLADABU } void URI::setPath(const String& dir, const String& baseName, const String& ext) { - //FR:Is this a bug or intention, but ext in OpenCOLLADA originaly seems to expect "." here + //FR:Is this a bug or intention, but ext in OpenCOLLADA originally seems to expect "." here //We relax this by just add "." when not present if (ext.length() > 0) { if (ext.c_str()[0] != '.') {