NAME ^

['String';'Utils'] - Utilities for string processing

SYNOPSIS ^

    load_bytecode 'String/Utils.pbc'

    .local pmc chomp
               chomp = get_global ['String';'Utils'], 'chomp'

    $S0 = chomp($S0)      # use default record separator ("\n")
    $S0 = chomp($S0, $S1) # use custom record separator

Functions ^

chomp

    $S0 = chomp( $S1 )
    $S0 = chomp( $S1, $S2 )
Remove all trailing record separator $S2 from tail of input string $S1 and return in $S0. If $S2 is not specified, the default \n is used.

AUTHOR ^

Jerry Gay a.k.a. particle


parrot