Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354256 - substring operator [: works when fromIndex == toIndex
Summary: substring operator [: works when fromIndex == toIndex
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matt Heitz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 10:22 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.