MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / GetTag

Method GetTag

scintilla/src/Editor.cxx:7343–7361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7341}
7342
7343int Editor::GetTag ( char *tagValue, int tagNumber )
7344{
7345 const char *text = 0;
7346 int length = 0;
7347 if ( ( tagNumber >= 1 ) && ( tagNumber <= 9 ) ) {
7348 char name[3] = "\\?";
7349 name[1] = static_cast<char> ( tagNumber + '0' );
7350 length = 2;
7351 text = pdoc->SubstituteByPosition ( name, &length );
7352 }
7353 if ( tagValue ) {
7354 if ( text ) {
7355 memcpy ( tagValue, text, length + 1 );
7356 } else {
7357 *tagValue = '\0';
7358 }
7359 }
7360 return length;
7361}
7362
7363int Editor::ReplaceTarget ( bool replacePatterns, const char *text, int length )
7364{

Callers

nothing calls this directly

Calls 1

SubstituteByPositionMethod · 0.80

Tested by

no test coverage detected