Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354256

Summary: substring operator [: works when fromIndex == toIndex
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Matt Heitz <mheitz>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-09 10:22:03 EDT
/**
	 * {@Operation [:} Returns the substring starting at fromIndex and ending at toIndex.
	 * @throws InvalidIndexException  if either index is out of range, or fromIndex is >= toIndex.
	 */
	static function $Substr(value EglString in, fromIndex EglInt in, toIndex EglInt in) returns(EglString) {@Operation{"[:"}};

EglString.egl documentation needs to be updated.  The operator will correctly return the character a the index when the same index is specified as the fromIndex and the toIndex.  EDT Java Gen currently works this way
Comment 1 Matt Heitz CLA 2011-08-19 17:36:34 EDT
I've updated the comments.  Replaced >= with >.
Comment 2 Kathy Carroll CLA 2011-08-22 10:25:22 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:30:56 EDT
Closing this defect.