FOSSredder 0.5.0
Loading...
Searching...
No Matches
core::utils Namespace Reference

Functions

std::string makeStableId ()
 Generates a stable hex identifier for persisted entities.
std::string trim (std::string s)
 Removes leading and trailing ASCII whitespace from a string.
std::string lowerAscii (std::string s)
 Converts ASCII letters in a string to lowercase.
std::string collapseWhitespace (std::string s)
 Collapses consecutive whitespace to single spaces and trims the result.
std::vector< std::string > splitWhitespace (const std::string &s)
 Splits a string on ASCII whitespace.
std::string currentTimestampUtc ()
 Returns the current UTC timestamp in ISO-8601 format.
std::string makeTransientId ()
 Generates a transient unique identifier for import and job artifacts.

Function Documentation

◆ collapseWhitespace()

std::string core::utils::collapseWhitespace ( std::string s)

Collapses consecutive whitespace to single spaces and trims the result.

Definition at line 34 of file StringUtils.cpp.

Here is the call graph for this function:

◆ currentTimestampUtc()

std::string core::utils::currentTimestampUtc ( )

Returns the current UTC timestamp in ISO-8601 format.

Definition at line 15 of file Time.cpp.

Here is the caller graph for this function:

◆ lowerAscii()

std::string core::utils::lowerAscii ( std::string s)

Converts ASCII letters in a string to lowercase.

Definition at line 28 of file StringUtils.cpp.

Here is the caller graph for this function:

◆ makeStableId()

std::string core::utils::makeStableId ( )

Generates a stable hex identifier for persisted entities.

Definition at line 21 of file StableId.cpp.

Here is the caller graph for this function:

◆ makeTransientId()

std::string core::utils::makeTransientId ( )

Generates a transient unique identifier for import and job artifacts.

Definition at line 14 of file TransientId.cpp.

Here is the caller graph for this function:

◆ splitWhitespace()

std::vector< std::string > core::utils::splitWhitespace ( const std::string & s)

Splits a string on ASCII whitespace.

Definition at line 40 of file StringUtils.cpp.

Here is the caller graph for this function:

◆ trim()

std::string core::utils::trim ( std::string s)

Removes leading and trailing ASCII whitespace from a string.

Definition at line 19 of file StringUtils.cpp.

Here is the caller graph for this function: