String operators

🟢 11 of 11 operators all ok · vtlengine 1.10.0rc3 (9e1c81a6) · pandas 2.3.3 · DuckDB 1.5.5
🟢 all ok🟡 partially implemented🛡️ refused with an error🔴 not implemented or crash🔵 engines differ ✅ match · ❌ wrong result · 🛡 guarded error (code) · 💥 crash · 📌 team decision
        ---
config:
  flowchart:
    useMaxWidth: false

---
flowchart LR
    classDef ok fill:#d4edda,stroke:#28a745,color:#000
    classDef partial fill:#fff3cd,stroke:#ffc107,color:#000
    classDef refused fill:#d4edda,stroke:#28a745,stroke-width:3px,stroke-dasharray: 2 2,color:#000
    classDef missing fill:#f8d7da,stroke:#dc3545,color:#000
    classDef diverge fill:#cce5ff,stroke:#007bff,color:#000
    classDef block fill:#2b3a4a,stroke:#2b3a4a,color:#fff,font-weight:bold
    classDef ext fill:#fff,stroke:#666,color:#000,stroke-dasharray: 5 5
    B["String operators"]:::block
    string__concat["String concatenation · #124;#124;<br/>🟢7"]:::ok
    string__trim["Whitespace removal · trim<br/>🟢3"]:::ok
    string__ltrim["Leading whitespace removal · ltrim<br/>🟢3"]:::ok
    string__rtrim["Trailing whitespace removal · rtrim<br/>🟢3"]:::ok
    string__upper["Upper case conversion · upper<br/>🟢3"]:::ok
    string__lower["Lower case conversion · lower<br/>🟢3"]:::ok
    string__substr["Sub-string extraction · substr<br/>🟢8"]:::ok
    string__replace["String pattern replacement · replace<br/>🟢6"]:::ok
    string__instr["String pattern location · instr<br/>🟢8"]:::ok
    string__length["String length · length<br/>🟢3"]:::ok
    string__string_distance["String distances · string_distance<br/>🟢11"]:::ok
    string__concat --- B
    string__trim --- B
    string__ltrim --- B
    string__rtrim --- B
    string__upper --- B
    string__lower --- B
    B --- string__substr
    B --- string__replace
    B --- string__instr
    B --- string__length
    B --- string__string_distance
    click string__concat href "concat.html"
    click string__trim href "trim.html"
    click string__ltrim href "ltrim.html"
    click string__rtrim href "rtrim.html"
    click string__upper href "upper.html"
    click string__lower href "lower.html"
    click string__substr href "substr.html"
    click string__replace href "replace.html"
    click string__instr href "instr.html"
    click string__length href "length.html"
    click string__string_distance href "string_distance.html"
    

Operators

Operator

Status

Forms

String concatenation ||

🟢

7

Whitespace removal trim

🟢

3

Leading whitespace removal ltrim

🟢

3

Trailing whitespace removal rtrim

🟢

3

Upper case conversion upper

🟢

3

Lower case conversion lower

🟢

3

Sub-string extraction substr

🟢

8

String pattern replacement replace

🟢

6

String pattern location instr

🟢

8

String length length

🟢

3

String distances string_distance

🟢

11

Types

Operator

number

integer

string

String concatenation

in · out

Whitespace removal

in · out

Leading whitespace removal

in · out

Trailing whitespace removal

in · out

Upper case conversion

in · out

Lower case conversion

in · out

Sub-string extraction

in

in · out

String pattern replacement

in · out

String pattern location

in · out

in

String length

out

in

String distances

out

in

Forms that are not green

Every form is 🟢 or 🛡️.