| 7341 | } |
| 7342 | |
| 7343 | int 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 | |
| 7363 | int Editor::ReplaceTarget ( bool replacePatterns, const char *text, int length ) |
| 7364 | { |
nothing calls this directly
no test coverage detected