Bill Hoffman wrote:
> [...]
> I think you are going to have to use regular expressions.
> [...]
Hello,
if you want some code that can correctly identify matching quotation
marks, regular expressions don't have enough expressive power to
describe that behaviour (you would need something like PEGs
Matthew Woehlke wrote:
Trevor Kellaway wrote:
Hi,
The following snippet will send the strings "1", "2" and "3" to the
messages console, each of them on its own line:
SET(FOO "1 2 3")
STRING(REPLACE " " ";" FOO_LIST "${FOO}")
FOREACH(item ${FOO_LIST})
MESSAGE(${item})
ENDFOREACH(it
Hi,
> The following snippet will send the strings "1", "2" and "3"
> to the messages console, each of them on its own line:
>
> SET(FOO "1 2 3")
> STRING(REPLACE " " ";" FOO_LIST "${FOO}")
> FOREACH(item ${FOO_LIST})
> MESSAGE(${item})
> ENDFOREACH(item ${FOO_LIST})
The "Mastering C
Matthew Woehlke wrote:
> [...] So I think I still have the same problem, how to take a string
> that might look like '-lfoo -lbar -L"foo bar/thelib"' and split it
> into '-lfoo', '-lbar' and '-L"foo bar/thelib". From there I can use
> STRING to strip the flag and SET/LIST to build the needed varia