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

Class method TELAbstractMapParser.MapStringToFileName

Previous pageReturn to chapter overviewNext page   

Reads file name from mapped image of .map file.

 

Unit

EMapParserBase

 

Syntax

 

Code (Delphi)

public

class function MapStringToFileName(

AMapString: PELMapString

): String; virtual;

 

Parameters

AMapString

A pointer to the beginning of the string to read. Usually points to '(' (see MapStringToStr).

 

Remarks

Reads file name from the "Line numbers for Unit1(code.inc) segment .text" section of .map file. See examples.

 

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.

 

Examples

 

Code (Delphi)

// Reads full file name:

S := MapStringToModuleName('(C:\Documents and Settings\user\Мои документы\RAD Studio\Projects\Project1.dpr) segment .itext');

// S = 'C:\Documents and Settings\user\Мои документы\RAD Studio\Projects\Project1.dpr'

//

// Reads short file name:

S := MapStringToModuleName('code.inc) segment .text');

// S = 'code.inc';

 

See also

TELAbstractMapParser.MapStringToModuleName
TELAbstractMapParser.MapStringToStr
TMapFileParser.MapStringToIdent
TELAbstractMapParser.PrepareStr



Send feedback... Build date: 2024-09-30
Last edited: 2024-09-30
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_mapstringtofilename.php