UNPKG

rhine-var

Version:

Variables that support multi-user collaboration and persistence, making collaboration and variable operations as simple as possible, with strict and well-defined type hints.

132 lines (131 loc) 2.64 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const native_type_enum_1 = require("../../native/native-type.enum"); const rhine_var_base_class_1 = __importDefault(require("../rhine-var-base.class")); class RhineVarText extends rhine_var_base_class_1.default { constructor() { super(...arguments); this._type = native_type_enum_1.NativeType.Text; this.value = ''; this.length = -1; } json() { return super.json(); } insert(index, value) { return -1; } delete(index, length) { return -1; } clear() { } at(index) { return ''; } charAt(index) { return ''; } charCodeAt(index) { return -1; } codePointAt(index) { return -1; } concat(...strings) { return ''; } endsWith(searchString, endPosition) { return false; } includes(searchString, position) { return false; } indexOf(searchValue, fromIndex) { return -1; } isWellFormed() { return false; } lastIndexOf(searchValue, fromIndex) { return -1; } localeCompare(compareString, locales, options) { return -1; } match(regexp) { return null; } matchAll(regexp) { return {}; } normalize(form) { return ''; } padEnd(targetLength, padString) { return ''; } padStart(targetLength, padString) { return ''; } repeat(count) { return ''; } replace(searchValue, replaceValue) { return ''; } replaceAll(searchValue, replaceValue) { return ''; } search(regexp) { return -1; } slice(start, end) { return ''; } split(separator, limit) { return []; } startsWith(searchString, position) { return false; } substring(start, end) { return ''; } toLocaleLowerCase() { return ''; } toLocaleUpperCase() { return ''; } toLowerCase() { return ''; } toString() { return ''; } toUpperCase() { return ''; } toWellFormed() { return ''; } trim() { return ''; } trimEnd() { return ''; } trimStart() { return ''; } valueOf() { return ''; } [Symbol.iterator]() { return {}; } } exports.default = RhineVarText;