Skip to content

cljs.ops.string

roman_lubushkin edited this page Jan 6, 2017 · 3 revisions

Methods

  • insert(at, value):cljs.ops.string.Insert
  • remove(at, value):cljs.ops.string.Remove
  • transform(op, against):cljs.ops.string.Operation
  • invert(op):cljs.ops.string.Operation
  • exec(value, ops):string
  • moveCursor(cursor, ops, siteId):number
  • genOps(oldString, newString):Array<!cljs.ops.string.Operation>

Typedefs

cljs.ops.string.Insert

{
  type: cljs.ops.string.OpType,
  at: number,
  value: string
}

cljs.ops.string.Remove

{
  type: cljs.ops.string.OpType,
  at: number,
  value: string
}

cljs.ops.string.Operation

cljs.ops.string.Insert|cljs.ops.string.Remove|null

Enums

cljs.ops.string.OpType

{
  INSERT: 0,
  REMOVE: 1
}
Clone this wiki locally