20#ifndef ORES_UTILITY_STRING_SHORT_CODE_GENERATOR_HPP
21#define ORES_UTILITY_STRING_SHORT_CODE_GENERATOR_HPP
24#include <unordered_set>
58 std::unordered_set<std::string>& used_codes);
String manipulation utilities.
Definition conversion_error.hpp:26
std::string generate_unique_short_code(const std::string &name, std::unordered_set< std::string > &used_codes)
Generates a unique short code, appending numeric suffixes on collision.
Definition short_code_generator.cpp:145
std::string strip_corporate_suffixes(const std::string &name)
Strips corporate/legal suffixes from an entity name.
Definition short_code_generator.cpp:52
std::string generate_short_code(const std::string &name)
Generates a 3-6 character mnemonic short code from an entity name.
Definition short_code_generator.cpp:75