版博士V2.0程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CharacterDataUtility.d.ts 1.9 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import ICharacterData from './ICharacterData';
  2. /**
  3. * Child node utility.
  4. */
  5. export default class CharacterDataUtility {
  6. /**
  7. * Appends the given DOMString to the CharacterData.data string; when this method returns, data contains the concatenated DOMString.
  8. *
  9. * @param characterData Character data.
  10. * @param data Data.
  11. */
  12. static appendData(characterData: ICharacterData, data: string): void;
  13. /**
  14. * Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data string; when this method returns, data contains the shortened DOMString.
  15. *
  16. * @param characterData Character data.
  17. * @param offset Offset.
  18. * @param count Count.
  19. */
  20. static deleteData(characterData: ICharacterData, offset: number, count: number): void;
  21. /**
  22. * Inserts the specified characters, at the specified offset, in the CharacterData.data string; when this method returns, data contains the modified DOMString.
  23. *
  24. * @param characterData Character data.
  25. * @param offset Offset.
  26. * @param data Data.
  27. */
  28. static insertData(characterData: ICharacterData, offset: number, data: string): void;
  29. /**
  30. * Replaces the specified amount of characters, starting at the specified offset, with the specified DOMString; when this method returns, data contains the modified DOMString.
  31. *
  32. * @param characterData Character data.
  33. * @param offset Offset.
  34. * @param count Count.
  35. * @param data Data.
  36. */
  37. static replaceData(characterData: ICharacterData, offset: number, count: number, data: string): void;
  38. /**
  39. * Returns a DOMString containing the part of CharacterData.data of the specified length and starting at the specified offset.
  40. *
  41. * @param characterData Character data.
  42. * @param offset Offset.
  43. * @param count Count.
  44. */
  45. static substringData(characterData: ICharacterData, offset: number, count: number): string;
  46. }