Re: String operations

jon klein <[email protected]>
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
On Feb 10, 2004, at 12:21 PM, William Taysom wrote:

> Okay, second question of the day.  What string operations does Steve 
> provide?  Are there any builtin C-style functions for doing the 
> standard things (like making substrings).

There aren't really many string operators at all in breve.  Up to this 
point strings have basically been used to identify class and method 
names, and for printing output.  It should be very easy to implement 
more advanced string operators though, since they would mostly be 
simple wrappers around C-functions already available.

If you have a request for a specific string operator, please let me 
know.

> With that in mind, I have one other question.  Is there any way to 
> find out the whole list of C-style function calls available in Steve?

The whole list of "supported" C-style function calls should be in the 
documentation.  In reality, there are actually a lot more C-style 
function calls that breve uses internally (the Control method "pause", 
for example, simply calls pauseSimulation()), but all of these 
functions are accessed through steve calls and the user should never 
have to call them manually.

> And, on the other side, is there an easy way to do Steve level 
> operations in the C code of a plugin such as making new objects, 
> invoking methods, etc?

You can invoke methods using stCallMethodByNameWithArgs (see the plugin 
header file).  There are C-functions used by the breve engine to create 
instances, but they're not currently part of the plugin API.  But you 
can certainly use stCallMethodByNameWithArgs to call a method which 
creates and returns an instance.

- jon klein

_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.