Package variables | General documentation | Methods |
WebCvs | Raw content |
is_long | No description | Code |
is_medium | No description | Code |
is_short | No description | Code |
length2code | No description | Code |
is_long | description | prev | next | Top |
my $length = shift; return ($length >= LONG); } #}
# converts a length to its status code SHORT, MEDIUM or LONG
#
is_medium | description | prev | next | Top |
my $length = shift; return ($length >= MEDIUM) && ($length < LONG); } #}
# returns true if a given length is considered to be LONG
#
is_short | description | prev | next | Top |
my $length = shift; return $length < MEDIUM; } #}
# returns true if a given length is considered to be MEDIUM
#
length2code | description | prev | next | Top |
my $length = shift; return StatMsg::SHORT if(is_short($length)); return StatMsg::MEDIUM if(is_medium($length)); return StatMsg::LONG if(is_long($length)); throw("Could not resolve length code for length=$length"); } 1;}