PIString::fromAscii() new overload
This commit is contained in:
@@ -333,11 +333,14 @@ PIString PIString::fromAscii(const char * s) {
|
|||||||
ret.push_back(PIChar(s[l]));
|
ret.push_back(PIChar(s[l]));
|
||||||
++l;
|
++l;
|
||||||
}
|
}
|
||||||
/*while (s[l] != '\0') ++l;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PIString PIString::fromAscii(const char * s, int len) {
|
||||||
PIString ret;
|
PIString ret;
|
||||||
ret.resize(l);
|
for (int l = 0; l < len; ++l)
|
||||||
for (int i = 0; i < l; ++i)
|
ret.push_back(PIChar(s[l]));
|
||||||
ret[i] = s[i];*/
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -722,6 +722,9 @@ public:
|
|||||||
//! \brief Return string constructed from ASCII
|
//! \brief Return string constructed from ASCII
|
||||||
static PIString fromAscii(const char * s);
|
static PIString fromAscii(const char * s);
|
||||||
|
|
||||||
|
//! \brief Return string constructed from "len" chars ASCII
|
||||||
|
static PIString fromAscii(const char * s, int len);
|
||||||
|
|
||||||
//! \brief Return string constructed from "c" codepage
|
//! \brief Return string constructed from "c" codepage
|
||||||
static PIString fromCodepage(const char * s, const char * c);
|
static PIString fromCodepage(const char * s, const char * c);
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
* If you using user version check, you should set it
|
* If you using user version check, you should set it
|
||||||
* with macro \a PIP_PLUGIN_SET_USER_VERSION(version).
|
* with macro \a PIP_PLUGIN_SET_USER_VERSION(version).
|
||||||
* When plugin is successfully loaded and checked,
|
* When plugin is successfully loaded and checked,
|
||||||
* you can load your custom cymbols with function
|
* you can load your custom symbols with function
|
||||||
* \a resolve(name), similar to PILibrary.
|
* \a resolve(name), similar to PILibrary.
|
||||||
* \note You should use PIP_PLUGIN_EXPORT and "export "C""
|
* \note You should use PIP_PLUGIN_EXPORT and "export "C""
|
||||||
* with functions you want to use with \a resolve(name)!
|
* with functions you want to use with \a resolve(name)!
|
||||||
|
|||||||
Reference in New Issue
Block a user