Root > Reference > All Classes > TELAbstractMapParser > Methods > TELAbstractMapParser.MapStringToStr

Class method TELAbstractMapParser.MapStringToStr

Previous pageReturn to chapter overviewNext page   

Reads string from mapped image of .map-file.

 

Unit

EMapParserBase

 

Syntax

 

Code (Delphi)

protected

class function MapStringToStr(

AMapString: PELMapString;

const AStopOnSpace, AHasRVAColumn: Boolean

): String; virtual;

 

Parameters

AMapString

A pointer to the beginning of the string to read.

 

Remarks

If AMapString starts with '(' - read string between '()', return data inside '()'.If AMapString starts with any other character: read string until EOL. This method behaves differently on different Delphi versions: ANSI version of this method returns UTF-8 encoded string.Unicode version of this method returns UTF-16 encoded string. Use TELAbstractMapParser.DecodeIdentDecodeIdent to get readable string.

 

Examples

 

Code (Delphi)

// Reads until EOL:

S := MapStringToStr('SysConst ACBP=A9'#13#10' 0002:000014F0 00000114 C=BSS S=.bss G=DGROUP M=SysUtils ACBP=A9')

// S = 'SysConst'

//

// Reads until EOL:

S := MapStringToStr('AnsiLowerCase'#13#10' 0001:00008158 AnsiLowerCaseFileName');

// S = 'AnsiLowerCase'

//

// Reads until EOL:

S := MapStringToStr('__fastcall System::AnsiString::operator =(const System::AnsiString&)'#13#10' 0001:0000ADF8 __fastcall System::AnsiString::~AnsiString()');

// S = '__fastcall System::AnsiString::operator =(const System::AnsiString&)'

 

See also

TELAbstractMapParser.MapStringToModuleName
TELAbstractMapParser.MapStringToFileName
TMapFileParser.MapStringToIdent
TELAbstractMapParser.PrepareStr



Send feedback... Build date: 2023-09-11
Last edited: 2023-09-11
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_method_emapparserbase_telabstractmapparser_mapstringtostr.php