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.