greenServeFE logogreenServeFELanguage, VM and Native Module Reference

Documentation home / Native Module API

Native Module API

String Utilities

Case conversion, whitespace trimming and common string predicates.

Purpose

Case conversion, whitespace trimming and common string predicates.

Exported API

ExportRole
lowerlower native function or exported value
upperupper native function or exported value
trimtrim native function or exported value
containscontains native function or exported value
starts_withstarts with native function or exported value
ends_withends with native function or exported value

Usage example

import gs_string;
define value = "  greenServeFE  ";
print(gs_string.trim(value));
print(gs_string.upper("gsve"));
print(gs_string.starts_with("greenServeFE", "green"));
String helpers operate on native strings and return values through the VM native API.

Related documentation