Encoding & Formatting Utilities

This section describes functions for some common encodings (hex-encoding, escape-encoding, etc).

// global functions

char findEscapeReplaceChar(char x);

size_t decodeEscapeString(
    std.StringBuilder* string,
    string_t source
);

string_t formatIntegerWithThousandSep(
    uint64_t value,
    char sep = ','
);

string_t formatFileSize(uint64_t size);
bool isspace(char c);

size_t decodeHexString(
    std.Buffer* buffer,
    string_t source
);

uint_t parseVersion(string_t string);

bool wildcardCompareStringLowerCase(
    char const thin* string0,
    char const thin* wildcard
);