CAPITAL <-> LOWERCASE
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

CAPITAL <-> LOWERCASE

Started by MANOS, 14 December, 2004, 03:55:27

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MANOS

Hi,

In order to finish one script of mine, I need to know how I can make the program to treat capital and lowercase letters as the same. For example: WoRd == word == WorD etc

Please help me if you can.
Thank you.

VidFamne

with; strlower(s) or strupper(s)
look >>HERE<<

MANOS

Thank you very much VidFamne.  :)
But still I can't understand the usage of strupper(s,n). I had tried to use this, but nothing happened. Could u give me an example with this command?
Thanks again. :)

Herodes

#3
there isnt any strupper(string, number) in lua ... the documentation shows that there is a strrep(string, number)..

 strrep (s, n)
Returns a string that is the concatenation of n copies of the string s.

Example :

strrep("ho ", 3).." !!! Merry Christmas!"

returns

"ho ho ho  !!! Merry Chistmas!"

VidFamne

And;  strupper("Ho,hO,ho").." !!! Merry Christmas!"
returns
HO,HO,HO !!! Merry Christmas!
while; strlower("Ho,hO,ho").." !!! Merry Christmas!"
returns
ho,ho,ho !!! Merry Christmas!

MANOS

Thank you both. :) Now I learn 3 more commands in lua. :-P
Also I had realized that I was reading the wrong manual. :-P I thought that PtokaX version 0.3.3.0 was supporting lua 5. But obviously I was wrong. Thanks again. :)

SMF spam blocked by CleanTalk