[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.uml2] Re: Tokenizing of strings in OCL ?

Hi Andreas,

I think the eclipse.technology.emft newsgroup would be a better place to
post this type of OCL question.

Cheers,

- James.

"Andreas Maier" <maiera@xxxxxxxxxx> wrote in message
news:eifhle$5i1$1@xxxxxxxxxxxxxxxxxxxx
> I have the need to tokenize strings in OCL.
>
> To begin with a simple task: In the string "CIM_ManagedElement", extract
> the string before the first underscore, and the string after the first
> underscore. The length of the first string is arbitrary, and there may
> be more than one underscore. The character set is Unicode.
>
> How can this be done in OCL ?
>
> Andy