![]() |
PIP 5.5.3
Platform-Independent Primitives
|
Regular expression. More...
Classes | |
| class | PIString |
| String class. More... | |
Functions | |
| template<typename P > | |
| PIBinaryStream< P > & | operator<< (PIBinaryStream< P > &s, const PIString &v) |
| Store operator. | |
| template<typename P > | |
| PIBinaryStream< P > & | operator>> (PIBinaryStream< P > &s, PIString &v) |
| Restore operator. | |
| 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) | |
Regular expression.
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: