Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » String operations
String operations [message #1716498] Fri, 04 December 2015 12:17 Go to next message
Andre Renard is currently offline Andre RenardFriend
Messages: 39
Registered: February 2013
Location: Liege, Belgium
Member
Is there somebody who had already written a string operation library within RCL?

For example I need to extract the last number within brackets in a string like "azerty[1]/querty[2]" (answer: "2").
Re: String operations [message #1716510 is a reply to message #1716498] Fri, 04 December 2015 13:14 Go to previous messageGo to next message
Andre Renard is currently offline Andre RenardFriend
Messages: 39
Registered: February 2013
Location: Liege, Belgium
Member
I guess I would able to do it with the invoke command on an object that would extend a java String object. But is there one?

[Updated on: Fri, 04 December 2015 13:17]

Report message to a moderator

Re: String operations [message #1716666 is a reply to message #1716510] Mon, 07 December 2015 11:27 Go to previous message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Andre,

Definitely, you can do it with "invoke" command, i.e.:

get-tab-folder -index 2 | get-property activePage -raw | invoke substring 2 4 | log


(if you retrieve your string via 'get-property' command, don't forget to add -raw argument to it).

or


emit "myString" | invoke substring 2 4 | log //answer is "St"


Kind regards,
Ulyana.
Previous Topic:Setting Parameters from the Maven plugin
Next Topic:[SOLVED] Unresolved runtime dependencies only when starting from RCPTT
Goto Forum:
  


Current Time: Fri Apr 26 20:01:18 GMT 2024

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

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

Back to the top