SYNAPSE - Synchronous TCP/IP Library for Delphi
Other related information can be found at http://www.ararat.cz/synapse/
Unit: SynaUtil
- Misc. functions:
- Function timezone:string
Return time offset of current time from UTC time. (example: '+0200', '-0800')
- Function Rfc822DateTime(t:TDateTime):String
Return current time in format defined in RFC-822. Usefull for SMTP message, but others protocol is used this time format too. Result is with timezone specification. For year is used four digits to break Y2K bug. (Example 'Fri, 15 Oct 1999 21:14:56 +0200')
- Function CodeInt(Value:integer):string
Return two characters, whitch ordinal values represents value in byte format. (High-endian)
- Function IsIP(Value:string):Boolean
Return TRUE, if Value if IP name (may be only part of IP address).
- Function ReverseIP(Value:string):string
Result is same IP, but in reverse order.
- Procedure Dump (Buffer:string;DumpFile:string)
Dump binnary buffer stored in string to file with DumpFile filename.
- Function SeparateLeft(value,delimiter:string):string
Return part of value string on left side from delimiter string.
- Function SeparateRight(value,delimiter:string):string
Return part of value string on right side from delimiter string.
- Function getparameter(value,parameter:string):string
Return parameter value from string in format: parameter1="value1"; parameter2=value2
- Function GetEmailAddr(value:string):string
Return only e-mail address from full address format. i.e. return 'nobody@somewhere.com' from '"someone"<nobody@somewhere.com>'.
- Function GetEmailDesc(value:string):string
Return only description part from full address format. i.e. return 'someone' from '"someone"<nobody@somewhere.com>'.
- Function StrToHex(value:string):string
Return string with hexa digits representing values of bytes in value string.