![]() |
TextUtil
use TextUtil;
use TextUtil qw(:all);
TextUtil module provides the following functions:
AddNumberSuffix, ContainsWhiteSpaces, GetTextLine, HashCode, IsEmpty, IsFloat , IsInteger, IsNotEmpty, IsNumberPowerOfNumber, IsNumerical, IsPositiveInteger , JoinWords, MonthNumberToName, QuoteAWord, RemoveLeadingAndTrailingWhiteSpaces , RemoveLeadingWhiteSpaces, RemoveTrailingWhiteSpaces, WrapText
Returns number with appropriate suffix: 0, 1st, 2nd, 3rd, 4th, and so on.
Returns 1 or 0 baded on whether the string contains any white spaces
Reads next line from an already opened text file, takes out any carriage return, and returns it as a string. NULL is returned for EOF.
Returns a 32 bit integer hash code using One-at-a-time algorithm By Bob Jenkins [Ref 38]. It's also implemented in Perl for internal hash keys in hv.h include file.
Returns 1 or 0 based on whether the string is empty
Returns 1 or 0 based on whether the string is a positive integer
Returns 1 or 0 based on whether the string is an integer
Returns 1 or 0 based on whether the string is a float.
Returns 0 or 1 based on whether the string is empty
Returns 1 or 0 based on whether the string is a number
Returns 1 or 0 based on whether the first number is a power of second number
Joins different words using delimiter and quote parameters, and returns it as a string
Returns month name from month number
Returns a quoted string based on Quote value
Returns a string without any leading and traling white spaces.
Returns a string without any traling white spaces
Returns a string without any leading and traling white spaces
Returns a wrapped string. By default, WrapLenght is 40 and WrapDelimiter is Unix new line character.
Copyright (C) 2004-2008 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.