My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 192: ‘class String’ has no member named ‘substring’
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2012


 
Reported by andy@onthewings.net, Jul 31, 2012
Tested with haxe r5210, hxcpp r558.

class Test {
	public static function main():Void {
		trace("123".substring(1,2)); //should output 2, but: ./src/Test.cpp:32: error: ‘class String’ has no member named ‘substring’
	}
}
Aug 1, 2012
Project Member #1 gameh...@gmail.com
Hi,
Try 'substr'  :)

Status: WontFix
Aug 1, 2012
#2 andy@onthewings.net
But substring is added to the haxe some time ago. See:
http://haxe.org/api/string
https://code.google.com/p/haxe/issues/detail?id=751

Aug 1, 2012
Project Member #3 gameh...@gmail.com
I did not expect that.
Status: Accepted
Dec 12, 2012
Project Member #4 si...@haxe.org
It seems this has been added.
Status: Done

Powered by Google Project Hosting