Page MenuHomeFeedback Tracker

string::LastIndexOf wrong docs and function not linked
Assigned, UrgentPublic

Description

The function string::LastIndexOf has a copy-paste mistake in the docs in the line that Prints the result.
Also, the function seems to be accidentally not linked on the c++ side. I would assume it is a quick and easy fix.

Here is the fixed docs:

/**
\brief Finds last 'sample' in 'str'. Returns -1 when not found
    \param sample \p string Finding string
    \return \p int - Returns position where \p sample starts, or -1 when \p sample not found
    @code
        string str = "Hello World";
        Print( str.LastIndexOf( "l" ) );
        
        >> 9
    @endcode
*/
proto native int LastIndexOf(string sample);

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Aug 8 2021, 2:01 PM
Arkensor updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Aug 9 2021, 1:51 PM
This comment was removed by BIS_fnc_KK.