FOSSredder 0.5.0
Loading...
Searching...
No Matches
StringUtils.cpp File Reference

Implements private string helpers shared across core implementation files. More...

#include "StringUtils.h"
#include <algorithm>
#include <cctype>
#include <regex>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for StringUtils.cpp:

Go to the source code of this file.

Namespaces

namespace  core
namespace  core::utils

Functions

std::string core::utils::trim (std::string s)
 Removes leading and trailing ASCII whitespace from a string.
std::string core::utils::lowerAscii (std::string s)
 Converts ASCII letters in a string to lowercase.
std::string core::utils::collapseWhitespace (std::string s)
 Collapses consecutive whitespace to single spaces and trims the result.
std::vector< std::string > core::utils::splitWhitespace (const std::string &s)
 Splits a string on ASCII whitespace.

Detailed Description

Implements private string helpers shared across core implementation files.

Definition in file StringUtils.cpp.