Opened 7 years ago

Closed 7 years ago

#315 closed enhancement (fixed)

Backward search for Universal_String.Index

Reported by: Pavel Zhukov Owned by:
Priority: major Milestone: 0.6.0
Component: Matreshka - League Version:
Keywords: Cc: Pavel Zhukov

Description

Something like:

function Index

(Self : Universal_String'Class;

Character : League.Characters.Universal_Character'Class;
Direction : Directions := Forward) return Natural;

-- Returns index of the first (or last if Direction := Backward) occurrence of the specified character in the
-- string, or zero if there are no occurrences.

Change History (3)

comment:1 by vadim.godunko, 7 years ago

In 4011:

Add subprogram to lookup for last occurrence of the character in the
string.

Refs #315.

comment:2 by vadim.godunko, 7 years ago

In 4012:

Add automated test.

Refs #315.

comment:3 by vadim.godunko, 7 years ago

Component: MatreshkaMatreshka - League
Milestone: 0.6.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.