Changeset View
Changeset View
Standalone View
Standalone View
src/catalog/ts/tsstorage.cpp
Show First 20 Lines • Show All 272 Lines • ▼ Show 20 Line(s) | |||||
273 | { | 273 | { | ||
274 | return content(sourceForPos(pos.entry)); | 274 | return content(sourceForPos(pos.entry)); | ||
275 | } | 275 | } | ||
276 | QString TsStorage::target(const DocPosition& pos) const | 276 | QString TsStorage::target(const DocPosition& pos) const | ||
277 | { | 277 | { | ||
278 | return content(targetForPos(pos)); | 278 | return content(targetForPos(pos)); | ||
279 | } | 279 | } | ||
280 | 280 | | |||
281 | QString TsStorage::sourceWithPlurals(const DocPosition& pos) const | ||||
282 | { | ||||
283 | return source(pos); | ||||
284 | } | ||||
285 | QString TsStorage::targetWithPlurals(const DocPosition& pos) const | ||||
286 | { | ||||
287 | return target(pos); | ||||
288 | } | ||||
289 | | ||||
281 | 290 | | |||
282 | void TsStorage::targetDelete(const DocPosition& pos, int count) | 291 | void TsStorage::targetDelete(const DocPosition& pos, int count) | ||
283 | { | 292 | { | ||
284 | TsContentEditingData data(pos.offset, count); | 293 | TsContentEditingData data(pos.offset, count); | ||
285 | content(targetForPos(pos), &data); | 294 | content(targetForPos(pos), &data); | ||
286 | } | 295 | } | ||
287 | 296 | | |||
288 | void TsStorage::targetInsert(const DocPosition& pos, const QString& arg) | 297 | void TsStorage::targetInsert(const DocPosition& pos, const QString& arg) | ||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |