Deprecate unused stringUtils functions

This commit is contained in:
Ray Speth 2014-11-07 02:14:57 +00:00
parent a6a10b854c
commit 8b8a95a2ff
2 changed files with 4 additions and 0 deletions

View file

@ -101,6 +101,7 @@ compositionMap parseCompString(const std::string& ss,
* pairs on multiple lines
* @param w Output vector consisting of single key:composition
* items in each index.
* @deprecated Unused. To be removed after Cantera 2.2.
*/
void split(const std::string& ss, std::vector<std::string>& w);
@ -111,6 +112,7 @@ void split(const std::string& ss, std::vector<std::string>& w);
* @param a Output pointer to a vector of floats
* @param delim character delimiter. Defaults to a space
* @return Returns the number of floats found and converted
* @deprecated Unused. To be removed after Cantera 2.2.
*/
int fillArrayFromString(const std::string& str, doublereal* const a,
const char delim = ' ');

View file

@ -166,6 +166,7 @@ compositionMap parseCompString(const std::string& ss,
void split(const std::string& ss, std::vector<std::string>& w)
{
warn_deprecated("split", "To be removed after Cantera 2.2.");
std::string s = ss;
std::string::size_type ibegin, iend;
std::string name, num, nm;
@ -188,6 +189,7 @@ void split(const std::string& ss, std::vector<std::string>& w)
int fillArrayFromString(const std::string& str,
doublereal* const a, const char delim)
{
warn_deprecated("fillArrayFromString", "To be removed after Cantera 2.2.");
std::string::size_type iloc;
int count = 0;
std::string num;