StringOp

zio.blocks.schema.json.JsonPatch.StringOp
See theStringOp companion trait
object StringOp

Attributes

Companion
trait
Source
JsonPatch.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
StringOp.type

Members list

Type members

Classlikes

final case class Append(text: String) extends StringOp

Appends text to the end of the string.

Appends text to the end of the string.

Value parameters

text

The text to append

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait StringOp
class Object
trait Matchable
class Any
Show all
final case class Delete(index: Int, length: Int) extends StringOp

Deletes characters starting at the given index.

Deletes characters starting at the given index.

Value parameters

index

The starting position (0-based)

length

The number of characters to delete

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait StringOp
class Object
trait Matchable
class Any
Show all
final case class Insert(index: Int, text: String) extends StringOp

Inserts text at the given index.

Inserts text at the given index.

Value parameters

index

The position to insert at (0-based)

text

The text to insert

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait StringOp
class Object
trait Matchable
class Any
Show all
final case class Modify(index: Int, length: Int, text: String) extends StringOp

Replaces a substring with new text.

Replaces a substring with new text.

Value parameters

index

The starting position (0-based)

length

The number of characters to replace

text

The replacement text

Attributes

Source
JsonPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait StringOp
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala