ZenScript main repository
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526
  1. export class StringBuilder {
  2. public extern this();
  3. public extern this(capacity as int);
  4. public extern this(value as string);
  5. public extern get empty as bool;
  6. public extern <<(value as bool) as StringBuilder;
  7. public extern <<(value as char) as StringBuilder;
  8. public extern <<(value as byte) as StringBuilder;
  9. public extern <<(value as sbyte) as StringBuilder;
  10. public extern <<(value as short) as StringBuilder;
  11. public extern <<(value as ushort) as StringBuilder;
  12. public extern <<(value as int) as StringBuilder;
  13. public extern <<(value as uint) as StringBuilder;
  14. public extern <<(value as float) as StringBuilder;
  15. public extern <<(value as double) as StringBuilder;
  16. public extern <<(value as string) as StringBuilder;
  17. public <<(value as StringBuildable) as StringBuilder {
  18. value.toString(this);
  19. return this;
  20. }
  21. public extern implicit as string;
  22. }