Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
utils Namespace Reference

Classes

class  DummyOutputStream
 

Functions

std::string asciiToLower (std::string s)
 
std::string asciiToUpper (std::string s)
 
bool parseVersion (const std::string &version, int &major, int &minor)
 
void printInternalError ()
 
void printFilesystemError (const std::filesystem::filesystem_error &fserr, std::string_view errorMsg)
 
std::filesystem::path normilizedPath (const std::string &path)
 
bool createDirectories (const std::string &path, std::string_view errorMsg, bool *exists=nullptr)
 

Variables

utils::DummyOutputStream DummyOutput
 

Function Documentation

◆ asciiToLower()

std::string utils::asciiToLower ( std::string s)

Definition at line 80 of file main.cpp.

Referenced by SyncScanner::sync().

+ Here is the caller graph for this function:

◆ asciiToUpper()

std::string utils::asciiToUpper ( std::string s)

Definition at line 87 of file main.cpp.

Referenced by SyncScanner::generateMasterHeader(), and SyncScanner::generateVersionHeader().

+ Here is the caller graph for this function:

◆ createDirectories()

bool utils::createDirectories ( const std::string & path,
std::string_view errorMsg,
bool * exists = nullptr )

Definition at line 156 of file main.cpp.

Referenced by SyncScanner::copyGeneratedHeadersToStagingDirectory(), SyncScanner::processHeader(), and SyncScanner::writeIfDifferent().

+ Here is the caller graph for this function:

◆ normilizedPath()

std::filesystem::path utils::normilizedPath ( const std::string & path)

Definition at line 145 of file main.cpp.

References printFilesystemError().

Referenced by SyncScanner::makeHeaderAbsolute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseVersion()

bool utils::parseVersion ( const std::string & version,
int & major,
int & minor )

Definition at line 94 of file main.cpp.

References pos.

Referenced by SyncScanner::generateDeprecatedHeaders().

+ Here is the caller graph for this function:

◆ printFilesystemError()

void utils::printFilesystemError ( const std::filesystem::filesystem_error & fserr,
std::string_view errorMsg )

Definition at line 139 of file main.cpp.

Referenced by SyncScanner::copyGeneratedHeadersToStagingDirectory(), and normilizedPath().

+ Here is the caller graph for this function:

◆ printInternalError()

void utils::printInternalError ( )

Definition at line 132 of file main.cpp.

Variable Documentation

◆ DummyOutput

utils::DummyOutputStream utils::DummyOutput