<<

HCT::Util

NAME

HCT::Util - Generic utility functions for HCT.

DESCRIPTION

This package contains various utility functions which do not belong anywhere else.

FUNCTIONS

This package provides several types of routines:

Strings

reduce_string (STRING [, REQUIRED_LENGTH, [, REPLACEMENT]])

Reduces string from the center and substitutes this place. REQUIRED_LENGTH means, what length should have incoming string after substitution. By default the replacement part equal to '~'.

        print reduce_string ('operator_precedence_sub', 11);
        # the result: opera~e_sub

<<

This document is part of HCT, the Hardware Complexity Tool.

Generated: Fri Jul 17 10:38:47 2009