Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Modern Strings - Function collection for strings and string-lists

Author
Message
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 12th Oct 2006 21:52
Hi.

I made some IMHO usefull functions for string-management.

I know, most of them are not really big, complicated or rare, and nearly everyone could programm most of them himself, but this is a relative big collection of functions with documentation.

Here the command-list with small description: (copy of the help-file)



What are the functions good for?
1. String-functions
You can use them for some more or less usefull actions like inserting strings into others, comparing them (returns, which one would be higher in the alphabet), sorting them character by character, mirroring them, or letting just all words of one kind be deleted.
2. List-functions
You can setup a list and add items (strings), then you can let the list be shuffled, sorted or mirrored, and then read all items out of it.

Here is the full code with example and functions:


And here are just the functions: (both included in the attached rar-file)


So... any comments, constructive criticism etc. are appreciated.
I hope, that the functions are helpful to anyone out there, and that they will be used by someone.
Thanks.

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1

Attachments

Login to view attachments
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 13th Oct 2006 01:51
Looks kinda cool! Just for the list functions I think thare should be a function that arranges a list of numbers in order from smallest to largest and vice versa

Ummm...
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 13th Oct 2006 01:59
This is a nice set of functions!

Could any or a combination of them be used to compare 2 text files and then display (or save as a file) the matches and/or the differences? Could you show an example of that? One reason is I save multiple generations of code as separate files, usually with updates and changes. But sometimes the latest generation isn't as good as say, two generations ago, and tracking down the actual code changes can sometimes be challenging. Your functions seem to lend themselves towards this kind of solution.

Enjoy your day.

Login to post a reply

Server time is: 2024-11-22 23:08:56
Your offset time is: 2024-11-22 23:08:56