ArkScript
A small, lisp-inspired, functional scripting language
Utils.cpp File Reference
#include <Ark/Utils/Utils.hpp>
#include <ranges>
Include dependency graph for Utils.cpp:

Go to the source code of this file.

Namespaces

namespace  Ark
 
namespace  Ark::Utils
 

Functions

ARK_API std::size_t Ark::Utils::levenshteinDistance (const std::string &str1, const std::string &str2)
 Calculate the Levenshtein distance between two strings.
 
ARK_API long Ark::Utils::countOpenEnclosures (const std::string &line, char open, char close)
 Count the open enclosure and its counterpart: (), {}, [].
 
ARK_API void Ark::Utils::trimWhitespace (std::string &line)
 Remove whitespaces at the start and end of a string.