Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   String (https://forums.graalonline.com/forums/showthread.php?t=59099)

Velox Cruentus 05-25-2005 02:48 AM

String
 
String to UPPER CASE.
String to lower case.

Fun.

str2low(string) -- returns string.
str2up(string) -- returns string.

Rick 05-25-2005 02:53 AM

Why make them global functions?

Should be a part of the string object.

string.lower()
string.upper()

Ajira 05-25-2005 02:53 AM

Or
NPC Code:

string.toupper()
string.tolower()


=)
But I agree, these should be added.
I like the 'to' in front. ^^

Velox Cruentus 05-25-2005 03:02 AM

Because I just wanted to tell what should be added... Not do anything more. (And I was thinking of how to do it. It sucks that we can't have our own object functions we can make... Or can we?)

Rick 05-25-2005 03:58 AM

...?

public function() {}

Unless you mean extending Graal types.

Fry 05-25-2005 07:56 AM

Quote:

Originally Posted by Rick
...?

public function() {}

Unless you mean extending Graal types.

Yes he probably meant that.


All times are GMT +2. The time now is 04:24 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.