Skip to content

Commit

Permalink
Merge commit 'b94963d38' into merge-2.4
Browse files Browse the repository at this point in the history
Conflicts:
	cmake/OpenCVGenAndroidMK.cmake
  • Loading branch information
Roman Donchenko committed Dec 30, 2013
2 parents ce7a2f7 + b94963d commit 39fb8e0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ bool ParseString(const string& src, string& key, string& value)
if (src.empty())
return false;

// find seporator ":"
size_t seporator_pos = src.find(":");
if (string::npos != seporator_pos)
// find separator ":"
size_t separator_pos = src.find(":");
if (string::npos != separator_pos)
{
key = src.substr(0, seporator_pos);
key = src.substr(0, separator_pos);
StripString(key);
value = src.substr(seporator_pos+1);
value = src.substr(separator_pos+1);
StripString(value);
return true;
}
Expand All @@ -50,42 +50,42 @@ bool ParseString(const string& src, string& key, string& value)
}
}

set<string> SplitString(const string& src, const char seporator)
set<string> SplitString(const string& src, const char separator)
{
set<string> result;

if (!src.empty())
{
size_t seporator_pos;
size_t separator_pos;
size_t prev_pos = 0;
do
{
seporator_pos = src.find(seporator, prev_pos);
result.insert(src.substr(prev_pos, seporator_pos - prev_pos));
prev_pos = seporator_pos + 1;
separator_pos = src.find(separator, prev_pos);
result.insert(src.substr(prev_pos, separator_pos - prev_pos));
prev_pos = separator_pos + 1;
}
while (string::npos != seporator_pos);
while (string::npos != separator_pos);
}

return result;
}

vector<string> SplitStringVector(const string& src, const char seporator)
vector<string> SplitStringVector(const string& src, const char separator)
{
vector<string> result;

if (!src.empty())
{
size_t seporator_pos;
size_t separator_pos;
size_t prev_pos = 0;
do
{
seporator_pos = src.find(seporator, prev_pos);
string tmp = src.substr(prev_pos, seporator_pos - prev_pos);
separator_pos = src.find(separator, prev_pos);
string tmp = src.substr(prev_pos, separator_pos - prev_pos);
result.push_back(tmp);
prev_pos = seporator_pos + 1;
prev_pos = separator_pos + 1;
}
while (string::npos != seporator_pos);
while (string::npos != separator_pos);
}

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <vector>

bool StripString(std::string& src);
std::set<std::string> SplitString(const std::string& src, const char seporator);
std::set<std::string> SplitString(const std::string& src, const char separator);
bool ParseString(const std::string& src, std::string& key, std::string& value);
std::vector<std::string> SplitStringVector(const std::string& src, const char seporator);
std::vector<std::string> SplitStringVector(const std::string& src, const char separator);

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ inline int SplitPlatform(const vector<string>& features)
}

/* Package naming convention
* All parts of package name seporated by "_" symbol
* All parts of package name separated by "_" symbol
* First part is base namespace.
* Second part is version. Version starts from "v" symbol. After "v" symbol version nomber without dot symbol added.
* If platform is known third part is platform name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ TEST(PackageManager, GetPackagePathForMips)
}
#endif

// TODO: Enable tests if seporate package will be exists
// TODO: Enable tests if separate package will be exists
// TEST(PackageManager, GetPackagePathForTegra2)
// {
// PackageManagerStub pm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ interface OpenCVEngineInterface
boolean installVersion(String version);

/**
* Return list of libraries in loading order seporated by ";" symbol
* Return list of libraries in loading order separated by ";" symbol
* @param OpenCV version
* @return Returns OpenCV libraries names seporated by symbol ";" in loading order
* @return Returns OpenCV libraries names separated by symbol ";" in loading order
*/
String getLibraryList(String version);
}

0 comments on commit 39fb8e0

Please sign in to comment.