@linkdotnet/stringoperations
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -65,2 +65,9 @@ /** | ||
/** | ||
* Inserts a string into the current rope and returns the merger | ||
* @param rope New rope to add to the current one | ||
* @param index Zero based index where the new rope has to be inserted | ||
* @returns The merged rope | ||
*/ | ||
insertString(text: string, index: number): Rope; | ||
/** | ||
* Deletes a substring from the rope | ||
@@ -67,0 +74,0 @@ * @param startIndex Inclusive starting index |
@@ -98,2 +98,11 @@ "use strict"; | ||
/** | ||
* Inserts a string into the current rope and returns the merger | ||
* @param rope New rope to add to the current one | ||
* @param index Zero based index where the new rope has to be inserted | ||
* @returns The merged rope | ||
*/ | ||
insertString(text, index) { | ||
return this.insert(Rope.create(text), index); | ||
} | ||
/** | ||
* Deletes a substring from the rope | ||
@@ -100,0 +109,0 @@ * @param startIndex Inclusive starting index |
@@ -8,1 +8,2 @@ export { getLongestCommonSubstring } from './edit-distance/longest-common-substring'; | ||
export { contains, findAll } from './search/boyer-moore'; | ||
export { isPalindrom } from './search/palindrom'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findAll = exports.contains = exports.Rope = exports.Trie = exports.getHammingDistance = exports.getLevenshteinDistance = exports.getClosestWords = exports.getClosestWord = exports.getLongestCommonSubsequence = exports.getLongestCommonSubstring = void 0; | ||
exports.isPalindrom = exports.findAll = exports.contains = exports.Rope = exports.Trie = exports.getHammingDistance = exports.getLevenshteinDistance = exports.getClosestWords = exports.getClosestWord = exports.getLongestCommonSubsequence = exports.getLongestCommonSubstring = void 0; | ||
var longest_common_substring_1 = require("./edit-distance/longest-common-substring"); | ||
@@ -21,1 +21,3 @@ Object.defineProperty(exports, "getLongestCommonSubstring", { enumerable: true, get: function () { return longest_common_substring_1.getLongestCommonSubstring; } }); | ||
Object.defineProperty(exports, "findAll", { enumerable: true, get: function () { return boyer_moore_1.findAll; } }); | ||
var palindrom_1 = require("./search/palindrom"); | ||
Object.defineProperty(exports, "isPalindrom", { enumerable: true, get: function () { return palindrom_1.isPalindrom; } }); |
{ | ||
"name": "@linkdotnet/stringoperations", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Collection of string utilities. Edit-Distances, Search and Data structures. Offers for example trie, levenshtein distance.", | ||
@@ -26,3 +26,4 @@ "main": "dist/index.js", | ||
"trie", | ||
"boyer moore" | ||
"boyer moore", | ||
"palindrom" | ||
], | ||
@@ -29,0 +30,0 @@ "author": "LinkDotNet", |
@@ -73,2 +73,3 @@ # String Operations for TypeScript | ||
## Search | ||
* Boyer-Moore | ||
* Boyer-Moore | ||
* Palindrom |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40568
21
832
74