By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!v:\> osd /pos=0,0 don't forget to ...
TCC: No closing quote
Usage : OSD ...
v:\> osd /pos=0,0 `don't forget to ...`
TCC: No closing quote
Usage : OSD ...
When I use
Code:NthArgument(psz, i | 0x8800, ...);
with a string containing one single quote (') it fails and I get, for example,
Code:v:\> plugin_command don't forget to TCC: No closing quote
What's up with that and how do I stop it?
0x8000 - don't interpret a commas as a delimiter
0x8000 - don't interpret a commas as a delimiter
0x4000 - interpret ( and ) as quoting characters
0x2000 - interpret [ and ] as quoting characters
0x1000 - disable the back quote quoting character
0x800 - don't interpret a switch character as a delimiter
On Sat, 11 Jun 2011 15:58:00 -0400, you wrote:
|WAD -- the 0x8000 arg tells NthArgument that you want to use single quotes as quote characters. Then you only pass it one single quote, and NthArgument quite correctly complains.
TakeCMd.h says
Code:0x8000 - don't interpret a commas as a delimiter
and does indeed do that. There's no mention of the single quote (anywhere). Are the flags documented correctly? Here's all of them.
Code:0x8000 - don't interpret a commas as a delimiter 0x4000 - interpret ( and ) as quoting characters 0x2000 - interpret [ and ] as quoting characters 0x1000 - disable the back quote quoting character 0x800 - don't interpret a switch character as a delimiter
... /COLOR=R[,G,B] ... plain text
> That doesn't make much sense to me. Is there some place where
> that combined function is useful?
> Could NextArgument() help me here, or will that "look ahead" and complain
> about an unmatched single quote?
0x8000 does both things (don't interpret commas as a delimiter, and use ' as a quote character).