From c2b21668af643baedd2e90ad91f118e1442d7ac2 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 27 Oct 2016 21:21:57 +1100 Subject: Tidy CaseMapString by moving some mechanics into CaseConvert. Use StringEncode and StringDecode more and make more likely to be optimized. --- src/CaseConvert.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/CaseConvert.h') diff --git a/src/CaseConvert.h b/src/CaseConvert.h index 60de22799..7a0100300 100644 --- a/src/CaseConvert.h +++ b/src/CaseConvert.h @@ -40,6 +40,9 @@ const int maxExpansionCaseConversion=3; // If there is not enough space then 0 is returned. size_t CaseConvertString(char *converted, size_t sizeConverted, const char *mixed, size_t lenMixed, enum CaseConversion conversion); +// Converts a mixed case string using a particular conversion. +std::string CaseConvertString(const std::string &s, enum CaseConversion conversion); + #ifdef SCI_NAMESPACE } #endif -- cgit v1.2.3