Tip: Creating ProperCase strings
Re: Tip: Creating ProperCase strings
CharUpper_ and CharLower_ are windows api calls.
Re: Tip: Creating ProperCase strings
Just because someone might be able to use it ...
On OSX you can also use the OS to do this
On OSX you can also use the OS to do this
Code: Select all
Procedure.s ProperCase(text.s)
ProcedureReturn PeekS(CocoaMessage(0, CocoaMessage(0, CocoaMessage(0, 0, "NSString stringWithString:$", @text), "capitalizedString"), "UTF8String"), -1, #PB_UTF8)
EndProcedure
Debug ProperCase("this is a TEST StRiNG")
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Tip: Creating ProperCase strings
Yes I know but my question was, do they behave differently.Tenaja wrote:CharUpper_ and CharLower_ are windows api calls.
PureBasic 5.41 LTS | Xubuntu 16.04 (x32) | Windows 7 (x64)