Page 1 of 2 1 2 >
Topic Options
#22932 - 11/25/06 12:20 PM Good string parser delimiter ?
Rushino


Registered: 06/30/06
Posts: 310
Loc: Canada
Is ; a good string parser delimiter ?
_________________________
Multimedia Fusion 2 Developer

Top
#22933 - 11/25/06 12:24 PM Re: Good string parser delimiter ? [Re: Rushino]
Surmulot


Registered: 07/01/06
Posts: 104
Loc: Near Nantes (Brittany)
I think it depends on what your string will be. If you create the string yourself, you may use this delimiter and avoid the ";". If someone else creates the string, I think you'd rather use "|".

Top
#22936 - 11/25/06 01:26 PM Re: Good string parser delimiter ? [Re: Surmulot]
DavidN
Forum Moderator


Registered: 06/30/06
Posts: 3026
Loc: Boston, MA, USA
If there aren't any semicolons in the strings you want to delimit, yes.

Top
#22937 - 11/25/06 01:33 PM Re: Good string parser delimiter ? [Re: Surmulot]
Corentin


Registered: 06/30/06
Posts: 593
Surmulot is right. If this delimiter is used in strings with player-input, then ";" might be used... But "|" could be used too (in smileys for example :|).
I currently use "|" much, but i make tests to avoid this kind of problem, and I try to use player-input at the end of the tokenized string, so that it won't matter much :
/PrivateMessage|Corentin|Rushino| hey :| Here's my private message to you Rushino
will not result in a big problem.
/PrivateMessage|hey :| Here's my private message to you Rushino|Corentin|Rushino
Would be more complicated....

Remember that client-side tests aren't enough, a hacker could send text containing your delimiter without using your client, but with another app

Top
#22944 - 11/25/06 03:49 PM Re: Good string parser delimiter ? [Re: Corentin]
Jamie
Clickteam


Registered: 06/30/06
Posts: 5112
Loc: UK
They could also send it using your client with a tool like WPE, no matter how much protection you put in client side.
_________________________
Jamie McLaughlin
Developer - AquadaSoft

Click Convention 2010 - FusionWiki - Roundtable

Top
#22995 - 11/26/06 10:09 AM Re: Good string parser delimiter ? [Re: Jamie]
Rushino


Registered: 06/30/06
Posts: 310
Loc: Canada
Interesting... how about * ? that will never be used...
_________________________
Multimedia Fusion 2 Developer

Top
#23008 - 11/26/06 10:53 AM Re: Good string parser delimiter ? [Re: Rushino]
Gustav


Registered: 07/01/06
Posts: 521
Loc: Weimar, Germany
I am using the #. \:\)

Top
#23009 - 11/26/06 11:36 AM Re: Good string parser delimiter ? [Re: Gustav]
Joshtek
Forum Moderator


Registered: 06/30/06
Posts: 3038
Loc: England
I use stuff like ±.
_________________________
The cake...
[color:red].::[color:purple]:[color:blue].Joshtek.:[/color]::.[/color]

...is a lie![/color]

Top
#23015 - 11/26/06 12:06 PM Re: Good string parser delimiter ? [Re: Joshtek]
Sphax
Forum Moderator


Registered: 06/30/06
Posts: 2980
Loc: Paris, France
I use "¤" because this character is never used.
_________________________
FusionUpdater: Keep your extensions up to date and install new ones! Last update: 2009-05-21

Top
#23027 - 11/26/06 01:29 PM Re: Good string parser delimiter ? [Re: Sphax]
aidmm


Registered: 07/12/06
Posts: 635
Loc: USA
and using a combination of odd characters (i.e. "|+") would increase the odds that someone would use them.
_________________________
MMF2 Developer. Build 249 (April 8, 2009). Windows XP Pro SP3. Mac OSX 10.5 (the latest updates)

Top
Page 1 of 2 1 2 >


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum

Quick File Links
Multimedia Fusion 2
Updates - build 249
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 249
Community Links
Fusion Wiki
MFA Repository
Klikdisc
The Daily Click
GameBuilder

GB Arcade
TDC Arcade
Madword

Extensions
Neatwares Extension List
Extension Updater

Lacewing & Moo Server
Klikfarm

Money from your games
Click Chat
9 People are chatting
Game Builder

Visit the GameBuilder Homepage

Recent Download

Dungeon Master

Latest News