string_upcase

Table of Contents

Prototype: string_upcase(data)

Return type: string

Description: Returns data in uppercase.

Arguments:

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

Example:

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

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

Output:

R: upcased abc: ABC

History: Introduced in CFEngine 3.6

See also: string_downcase().