projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.1.8
[fms.git]
/
src
/
stringfunctions.cpp
diff --git
a/src/stringfunctions.cpp
b/src/stringfunctions.cpp
index
36a3707
..
bed3622
100644
(file)
--- a/
src/stringfunctions.cpp
+++ b/
src/stringfunctions.cpp
@@
-26,8
+26,8
@@
std::string Replace(const std::string &input, const std::string &find, const std
\r
void Split(const std::string &str, const std::string &delim, std::vector<std::string> &output)
\r
{
\r
\r
void Split(const std::string &str, const std::string &delim, std::vector<std::string> &output)
\r
{
\r
-
unsigned int
offset = 0;
\r
-
unsigned int
delimIndex = 0;
\r
+
std::string::size_type
offset = 0;
\r
+
std::string::size_type
delimIndex = 0;
\r
\r
delimIndex = str.find(delim, offset);
\r
\r
\r
delimIndex = str.find(delim, offset);
\r
\r
@@
-43,8
+43,8
@@
void Split(const std::string &str, const std::string &delim, std::vector<std::st
\r
void SplitMultiple(const std::string &str, const std::string &delim, std::vector<std::string> &output)
\r
{
\r
\r
void SplitMultiple(const std::string &str, const std::string &delim, std::vector<std::string> &output)
\r
{
\r
-
unsigned int
offset = 0;
\r
-
unsigned int
delimIndex = 0;
\r
+
std::string::size_type
offset = 0;
\r
+
std::string::size_type
delimIndex = 0;
\r
\r
delimIndex = str.find_first_of(delim, offset);
\r
\r
\r
delimIndex = str.find_first_of(delim, offset);
\r
\r