Lines Matching refs:offset
81 void SAL_CALL CCharacterData::deleteData(sal_Int32 offset, sal_Int32 count) in deleteData() argument
93 if (offset > tmp.getLength() || offset < 0 || count < 0) { in deleteData()
98 if ((offset+count) > tmp.getLength()) in deleteData()
99 count = tmp.getLength() - offset; in deleteData()
101 OUString tmp2 = tmp.copy(0, offset); in deleteData()
102 tmp2 += tmp.copy(offset+count, tmp.getLength() - (offset+count)); in deleteData()
152 void SAL_CALL CCharacterData::insertData(sal_Int32 offset, const OUString& arg) in insertData() argument
164 if (offset > tmp.getLength() || offset < 0) { in insertData()
170 OUString tmp2 = tmp.copy(0, offset); in insertData()
172 tmp2 += tmp.copy(offset, tmp.getLength() - offset); in insertData()
187 … void SAL_CALL CCharacterData::replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) in replaceData() argument
199 if (offset > tmp.getLength() || offset < 0 || count < 0){ in replaceData()
204 if ((offset+count) > tmp.getLength()) in replaceData()
205 count = tmp.getLength() - offset; in replaceData()
207 OUString tmp2 = tmp.copy(0, offset); in replaceData()
209 tmp2 += tmp.copy(offset+count, tmp.getLength() - (offset+count)); in replaceData()
241 OUString SAL_CALL CCharacterData::subStringData(sal_Int32 offset, sal_Int32 count) in subStringData() argument
254 if (offset > tmp.getLength() || offset < 0 || count < 0) { in subStringData()
259 aStr = tmp.copy(offset, count); in subStringData()