Ada.Strings.Fixed declares:
function Index (Source : in String;
Pattern : in String;
Going : in Direction := Forward;
Mapping : in Maps.Character_Mapping_Function)
return Natural;
What about passing a null Mapping parameter?
I haven’t found any clue in RM A.4.3 Fixed-Length String Handling.
Is there a specific non documented behavior?
Should’t Mapping parameter be protected with not null exclusion?