Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » linebreak between Strings?
linebreak between Strings? [message #66130] Wed, 28 January 2009 10:36 Go to next message
Eclipse UserFriend
Originally posted by: jgreen.upb.de

Hi,
is there a way to insert a line break between strings?
Something like 'line1 text'.concat('\n').concat('line2 text')
(which doesn't work)

Thanks for helping.

Joel
Re: linebreak between Strings? [message #66151 is a reply to message #66130] Wed, 28 January 2009 13:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Joel,

The OCL concrete syntax for strings is unspecified, alas.

Literally including a newline in your string literal doesn't work, either:

'line one
line two'

Perhaps http://bugs.eclipse.org/242880 should be prioritized for this
release (once the crazy deadlines at my day job pass).

There is some measure of code in the parser that is intended to process
Java-style escapes; it doesn't seem to be working.

cW

Joel Greenyer wrote:
> Hi,
> is there a way to insert a line break between strings?
> Something like 'line1 text'.concat('\n').concat('line2 text')
> (which doesn't work)
>
> Thanks for helping.
>
> Joel
Re: linebreak between Strings? [message #66172 is a reply to message #66151] Wed, 28 January 2009 15:25 Go to previous message
Eclipse UserFriend
Originally posted by: jgreen.upb.de

Christian W. Damus wrote:
> Hi, Joel,
>
> The OCL concrete syntax for strings is unspecified, alas.
>
> Literally including a newline in your string literal doesn't work, either:
>
> 'line one
> line two'
>
> Perhaps http://bugs.eclipse.org/242880 should be prioritized for this
> release
That's it, I didn't see the bug.
> (once the crazy deadlines at my day job pass).
I know, sometimes work keeps you from doing useful things ;)
>
> There is some measure of code in the parser that is intended to process
> Java-style escapes; it doesn't seem to be working.
>
> cW
>
> Joel Greenyer wrote:
>> Hi,
>> is there a way to insert a line break between strings?
>> Something like 'line1 text'.concat('\n').concat('line2 text')
>> (which doesn't work)
>>
>> Thanks for helping.
>>
>> Joel
Previous Topic:[Announce] MDT OCL 1.3.0 I200901271600 is available
Next Topic:Collection union with distinct types
Goto Forum:
  


Current Time: Thu Apr 25 18:48:09 GMT 2024

Powered by FUDForum. Page generated in 0.03361 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top