![]() |
PIP 5.6.1
Platform-Independent Primitives
|
String class. More...
Classes | |
| class | PIString |
| String class. More... | |
Functions | |
| PIString | operator+ (const PIString &str, const PIString &f) |
| Returns concatenated string. | |
| PIString | operator+ (const PIString &f, const char *str) |
| Returns concatenated string. | |
| PIString | operator+ (const char *str, const PIString &f) |
| Returns concatenated string. | |
| PIString | operator+ (const char c, const PIString &f) |
| Returns concatenated string. | |
| PIString | operator+ (const PIString &f, const char c) |
| Returns concatenated string. | |
| int | versionCompare (const PIString &v0, const PIString &v1, int components=6) |
| Compare two version strings in free notation and returns 0, -1 or 1. More... | |
| PIString | versionNormalize (const PIString &v) |
| Converts version string in free notation to classic view. More... | |
| template<typename T > | |
| PIString | piStringify (const T &v) |
| Returns string representation of "v", using PICout operator<<(T) | |
Variables | |
| return | s |
| Store operator. | |
| v | changed_ = true |
| Restore operator. | |
String class.
Compare two version strings in free notation and returns 0, -1 or 1.
This function parse version to number codes and labels. Then it compare no more than "components" codes. If there is no difference, compare labels. Each label has corresponding integer value, so "prealpha" < "alpha" < "prebeta" < "beta" < "rc[N]" < "" < "r[N]". Example:
Converts version string in free notation to classic view.
Parse version as described in versionCompare() and returns classic view of codes and labels: major.minor.revision[-build][_label]. Example: