String function

String

String

Create a string in MiniZinc

Examples

newString = String$new("example") newString$c_str() newString$setV("new example") newString$c_str()

Super class

rminizinc::Expression -> String

Public fields

  • .value: string value

Active bindings

  • .value: string value

Methods

Public methods

Method new()

constructor

Usage

String$new(val)

Arguments

  • val: string input

Method getV()

get value

Usage

String$getV()

Method setV()

set value

Usage

String$setV(val)

Arguments

  • val: string value

Method c_str()

get the MiniZinc representation

Usage

String$c_str()

Method clone()

The objects of this class are cloneable with this method.

Usage

String$clone(deep = FALSE)

Arguments

  • deep: Whether to make a deep clone.

  • Maintainer: Akshit Achara
  • License: Mozilla Public License Version 2.0
  • Last published: 2021-10-15