18 lines
426 B
C++
18 lines
426 B
C++
#pragma once
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
namespace Utils
|
|
{
|
|
bool isWhitespaceCharacter(char const c);
|
|
|
|
// Returns nullopt in case the value is missing its terminator character
|
|
std::optional<std::string> getValueSurroundedBy(
|
|
std::string const & src,
|
|
std::size_t const pos,
|
|
char const surroundingCharacter);
|
|
|
|
std::string getValueSurroundedByWhitespace(
|
|
std::string const & src,
|
|
std::size_t const pos);
|
|
} |