Stratego/XT JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STR-593
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Bravenboer
Reporter: Anonymous
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Stratego/XT

string-replace problem

Created: 2006-06-10 16:08   Updated: 2008-03-31 20:46
Component/s: stratego-lib - Stratego Library
Affects Version/s: 0.16 (Stratego Core Compiler)
Fix Version/s: 0.17

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
- StrategoXt 0.16 (stable release)
- i686
- Linux 2.6.16-gentoo #1 PREEMPT Sat Mar 25 00:59:02 CET 2006 i686 AMD Turion(tm) 64 Mobile Technology ML-30 AuthenticAMD GNU/Linux (32bit environment)


 Description  « Hide
I use StrategoXt 0.16 for simple transformations in my master thesis and i found out
strange behaviour of string-replace strategy.

When i tested simple example from xdoc it works ok:
stratego> <string-replace(|"foo", "bar")> "foobarfoo"
"barbarbar"

When i insert some other character into string it works strange:
stratego> <string-replace(|"foo", "bar")> "fooXfoo"
"barbarX"


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order:
Martin Bravenboer [2006-07-01 21:31]
Fixed, indeed this was a bug in the implementation of string-replace. Thanks for reporting!