Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-8604

Move String functions upcase, downcase, capitalize, camelcase, lstrip, rstrip, strip, chop, chomp from stdlib to puppet

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.0.0
    • Docs
    • None
    • New Feature
    • Hide
      The functions upcase(), downcase(), capitalize(), camelcase(), lstrip(), rstrip(), strip(), chop(), chomp(), and size() have been updated to the modern function API and the new versions are in Puppet and no longer requires stdlib). The functions are generally backwards compatible.
      Show
      The functions upcase(), downcase(), capitalize(), camelcase(), lstrip(), rstrip(), strip(), chop(), chomp(), and size() have been updated to the modern function API and the new versions are in Puppet and no longer requires stdlib). The functions are generally backwards compatible.
    • Needs Assessment

    Description

      Move String functions upcase, downcase, capitalize, camelcase, lstrip, rstrip, strip, chop, chomp from stdlib to puppet and update them to the 4.x function API. The new implementations must be backwards compatible but may add new features.

      The length() function was added in PUP-8497 to override the function with the same name in stdlib.
      The size() function was however not moved and should be moved in this ticket since the 3.x stdlib implementation is broken for strings that can be converted to Float (it errors).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              henrik.lindberg Henrik Lindberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support