Go to the documentation of this file.
95 if (thisPtr->
m_extra.m_size != 0)
97 const char space =
' ';
124 int reposVersion = 0;
138 result = sscanf(version->m_data,
"%d.%d.%d build %d rev %d%zn", &major, &minor, &revision, &build, &reposVersion, &count);
153 if ((result == 5) && ((count + 1) < version->m_size))
int m_revision
The revision number of the version.
XsString m_extra
Storage for some extra information about the version.
void XsVersion_toString(const XsVersion *thisPtr, XsString *version)
Get a string with the version expressed in a readable format.
int m_build
The build number for this build.
int XsString_empty(XsString const *thisPtr)
Returns true when the supplied string is empty.
void XsVersion_toSimpleVersion(const XsVersion *thisPtr, XsSimpleVersion *simpleVersion)
Create a XsSimpleVersion (version) from a XsVersion.
uint8_t m_major
The major part of the version number.
void XsString_append(XsString *thisPtr, XsString const *other)
This function concatenates the other to this.
A class to store version information.
uint8_t m_minor
The minor part of the version number.
int XsVersion_empty(const XsVersion *thisPtr)
Test if this is a null-version.
void XsVersion_toSimpleString(const XsVersion *thisPtr, XsString *version)
Get a string with the version expressed in a readable format.
uint8_t m_revision
The revision number of the version.
void XsVersion_fromSimpleVersion(XsVersion *thisPtr, const XsSimpleVersion *simpleVersion)
Create a XsVersion a XsSimpleVersion, simpleVersion.
size_t XsSize
XsSize must be unsigned number!
int m_minor
The minor part of the version number.
A class to store version information.
void XsVersion_fromString(XsVersion *thisPtr, const XsString *version)
Set the version to the values in the string.
void XsArray_insert(void *thisPtr, XsSize index, XsSize count, void const *src)
Insert count items from src at index in the array.
void XsString_resize(XsString *thisPtr, XsSize count)
This function resizes the contained string to the desired size, while retaining its contents.
void XsString_assignCharArray(XsString *thisPtr, const char *src)
This function determines the size of src and copies the contents to the object.
int m_major
The major part of the version number.
void XsString_assign(XsString *thisPtr, XsSize count, const char *src)
Reinitializes the XsArray with space for count items and copies them from src.
A 0-terminated managed string of characters.
int m_reposVersion
The source revision used for this build.