string_downcase

Table of Contents

Prototype: string_downcase(data)

Return type: string

Description: Returns data in lower case.

Arguments:

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

Example:

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

bundle agent example
{
  vars:
      "downcase" string => string_downcase("ABC"); # will contain "abc"
  reports:
      "downcased ABC = $(downcase)";
}

Output:

R: downcased ABC = abc

History: Introduced in CFEngine 3.6

See also: string_upcase().