|count words or spaces in a string [message #560141]
||Tue, 21 September 2010 06:36
Registered: October 2009
I am interested to write a query to check how many words are used for the name of any classifier in OCL ( eclipse interpreter console).
to make it simple, count number of words used for a class name.
self.name took complete name as a one string.
To look for each character in the string it looks that substring function might work, for example third element in a string is a space. But substring took upper and lower values as an integer value. I want to make this a general query becuase I do not know how many words are used as a class name or after how many characters the next word starts.
is there any way to define this as general query.
Thanks in advance,
Powered by FUDForum
. Page generated in 0.01620 seconds