Explorer

std.ascii-change-case-from

description
Append the characters of value from index to acc, replacing those in from with to (std.ascii-change-case-char)
type
Fn(value: String, index: Number, from: String, to: String, acc: String) -> String
expression
fn(value$0, index$1, from$2, to$3, acc$4) =>
  match @core.less-than(left: $1, right: @core.string-length(value: $0)) {
    false =>
      $4,
    true =>
      @std.ascii-change-case-from(
        value: $0,
        index: @core.plus(left: $1, right: 1),
        from: $2,
        to: $3,
        acc: @core.string-concat(
          left: $4,
          right: @std.ascii-change-case-char(
            character: @core.string-slice(value: $0, start: $1, end: @core.plus(left: $1, right: 1)),
            from: $2,
            to: $3
          )
        )
      )
  }
visibility
public
std.ascii-change-case-from (project definy, branch http-cbor, snapshot 2jdLzxAm7E__OLNmiW8b5Qn5SeDXn9HnpZiFUpkZj2I)
id: BQc-p-corUpC6jpiyjbJFyBbVj42AatALPmYHOMOQ0A
content hash: m-nK2d_f8KhwitWK8J4QTOl_e2P05YtPA6AnKX_dT_g