ArkScript
A small, fast, functional and scripting language for video games
Utils.cpp File Reference
#include <Ark/Utils.hpp>
+ Include dependency graph for Utils.cpp:

Go to the source code of this file.

Namespaces

namespace  Ark
 
namespace  Ark::Utils
 

Functions

int Ark::Utils::decPlaces (double d)
 Count the number of decimals for a double.
 
int Ark::Utils::digPlaces (double d)
 Count the number of digits for a double.
 
int Ark::Utils::levenshteinDistance (const std::string &str1, const std::string &str2)
 Calculate the Levenshtein distance between two strings.