Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in COLLADABaseUtils subdir #657

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions COLLADABaseUtils/include/COLLADABUHashFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion COLLADABaseUtils/include/COLLADABUStringUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
4 changes: 2 additions & 2 deletions COLLADABaseUtils/include/COLLADABUUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions COLLADABaseUtils/include/Math/COLLADABUMathMatrix4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion COLLADABaseUtils/src/COLLADABUURI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] != '.') {
Expand Down