-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sorted out de-boost build on linux, fixes #241
- Loading branch information
1 parent
ee4d0a8
commit 898dcea
Showing
4 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <cctype> | ||
#include <string> | ||
|
||
namespace sirf { | ||
bool iequals(const std::string& a, const std::string& b) | ||
{ | ||
unsigned int n = a.size(); | ||
if (b.size() != n) | ||
return false; | ||
for (unsigned int i = 0; i < n; i++) | ||
if (tolower(a[i]) != tolower(b[i])) | ||
return false; | ||
return true; | ||
} | ||
} | ||
|