Changeset View
Changeset View
Standalone View
Standalone View
src/catalog/xliff/xliffstorage.cpp
Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Line(s) | |||||
504 | QString XliffStorage::source(const DocPosition& pos) const | 504 | QString XliffStorage::source(const DocPosition& pos) const | ||
505 | { | 505 | { | ||
506 | return genericContent(sourceForPos(pos.entry), pos.entry < size()); | 506 | return genericContent(sourceForPos(pos.entry), pos.entry < size()); | ||
507 | } | 507 | } | ||
508 | QString XliffStorage::target(const DocPosition& pos) const | 508 | QString XliffStorage::target(const DocPosition& pos) const | ||
509 | { | 509 | { | ||
510 | return genericContent(targetForPos(pos.entry), pos.entry < size()); | 510 | return genericContent(targetForPos(pos.entry), pos.entry < size()); | ||
511 | } | 511 | } | ||
512 | QString XliffStorage::sourceWithPlurals(const DocPosition& pos) const | ||||
513 | { | ||||
514 | return source(pos); | ||||
515 | } | ||||
516 | QString XliffStorage::targetWithPlurals(const DocPosition& pos) const | ||||
517 | { | ||||
518 | return target(pos); | ||||
519 | } | ||||
512 | 520 | | |||
513 | 521 | | |||
514 | void XliffStorage::targetDelete(const DocPosition& pos, int count) | 522 | void XliffStorage::targetDelete(const DocPosition& pos, int count) | ||
515 | { | 523 | { | ||
516 | if (pos.entry < size()) { | 524 | if (pos.entry < size()) { | ||
517 | ContentEditingData data(pos.offset, count); | 525 | ContentEditingData data(pos.offset, count); | ||
518 | content(targetForPos(pos.entry), &data); | 526 | content(targetForPos(pos.entry), &data); | ||
519 | } else { | 527 | } else { | ||
▲ Show 20 Lines • Show All 498 Lines • Show Last 20 Lines |