From 6f4ea3b06d1ace17e90a2ef54150dc46655391f1 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 3 Apr 2016 21:10:17 +0300 Subject: [PATCH] Also include the lower/upper case conversion functions in the string library. --- source/Library/String.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Library/String.cpp b/source/Library/String.cpp index 87d14bb9..0b579eb8 100644 --- a/source/Library/String.cpp +++ b/source/Library/String.cpp @@ -1322,7 +1322,9 @@ void Register_String(HSQUIRRELVM vm) .Func(_SC("IsXdigit"), &CharClassSpec< CharClass::IsXdigit >::Eq) .Func(_SC("IsAlnum"), &CharClassSpec< CharClass::IsAlnum >::Eq) .Func(_SC("IsGraph"), &CharClassSpec< CharClass::IsGraph >::Eq) - .Func(_SC("IsBlank"), &CharClassSpec< CharClass::IsBlank >::Eq); + .Func(_SC("IsBlank"), &CharClassSpec< CharClass::IsBlank >::Eq) + .Func(_SC("ToLower"), &tolower) + .Func(_SC("ToUpper"), &toupper); } } // Namespace:: SqMod