Prototype: string_upcase(data)

Return type: string

Description: Returns data in uppercase.

Arguments:

  • data: string - Input string - in the range: .*

Example:

code
body common control
{
      bundlesequence => { "example" };
}

bundle agent example
{
  vars:
      "upcase" string => string_upcase("abc"); # will contain "ABC"
  reports:
      "upcased abc: $(upcase)";
}

Output:

code
R: upcased abc: ABC

History: Introduced in CFEngine 3.6

See also: string_downcase().