SILICON
Loading...
Searching...
No Matches
indentationUtils.hpp File Reference
#include <regex>
#include <string>
#include <string_view>
Include dependency graph for indentationUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SILICON
namespace  SILICON::ui
namespace  SILICON::ui::indentation

Functions

std::string_view trimLeft (std::string_view value)
std::string_view trimRight (std::string_view value)
std::string leadingWhitespace (const std::string_view line)
std::string codePortion (const std::string_view line, const std::regex &strippedPortions)
bool regexSearch (const std::string_view value, const std::regex &expression)
bool endsWithWord (const std::string_view value, const std::string_view word)
void addIndentLevel (std::string &indentation, const int indentWidth)
void removeIndentLevel (std::string &indentation, const int indentWidth)