Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 629 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
String Manipulation #319061
04/11/10 22:02
04/11/10 22:02
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Hi there,

I've written a small String.h include to make string manipulation with lite-c a little bit easier.

At the moment there are just 3 little but useful string functions:
StrReplace, SubStr, explode
(If you've already programmed in php, you should know them)

Script (GameStudio Wiki)

I hope you like it!

If you have some ideas for other useful string-manipulation functions, as well as some code improvements, let me know about them!

Edit: I've updated it and added the functions file_get_contents and file_write

Regards
TSGames

Last edited by TSG_Torsten; 04/18/10 12:00.
Re: String Manipulation [Re: TSG_Torsten] #319155
04/12/10 16:38
04/12/10 16:38
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
For sure usefull, even though I will probably have forgotten about them and write them myself, next time I need something like this wink
Thanks, please put them into the wiki.

Re: String Manipulation [Re: Slin] #319158
04/12/10 16:53
04/12/10 16:53
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Looks very useful! I'm struck by the ease of StrReplace. laugh

Re: String Manipulation [Re: Pappenheimer] #319199
04/12/10 22:53
04/12/10 22:53
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
@Slin
I think this is the same problem i actually have grin
But in fact, if i've alredy developed such a function by myself, I will remember and going to use it instead of re-writing it ^^
Btw.: I've insert it into the Wiki.

@Pappenheimer
Yeah, it's actually cool when you want to replace ' by \' or something like this (for database queries, as an example).
I really love such functions (especially when I'm working in php - there are hundreds of great functions already existing) and because of this I decided to write (just a few, of course ^^) under lite-c (which is not that hard since it is very easy for me as a c++ programmer ^^)

Regards
TSGames

Last edited by TSG_Torsten; 04/12/10 22:54.
Re: String Manipulation [Re: TSG_Torsten] #319502
04/15/10 12:47
04/15/10 12:47
Joined: Feb 2010
Posts: 457
Norfolk,England
mikaldinho Offline
Senior Member
mikaldinho  Offline
Senior Member

Joined: Feb 2010
Posts: 457
Norfolk,England
cool. i like it. if this forum had a thank button like other forums do i would have pressed it.


Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1