::rtfm "idh_scripting_comref.htm#idh_sc_abs"; //abs() - Returns the absolute value of a number. ::rtfm "idh_scripting_comref.htm#idh_sc_ceil"; //ceil() - Rounds fractions up. ::rtfm "idh_scripting_comref.htm#idh_sc_dectohex"; //dectohex(), hex() - Converts a signed decimal integer into hexadecimal. ::rtfm "idh_scripting_comref.htm#idh_sc_floor"; //floor() - Rounds fractions down. ::rtfm "idh_scripting_comref.htm#idh_sc_hexdump"; //hexdump() - Returns a string as hex dump. ::rtfm "idh_scripting_comref.htm#idh_sc_hextodec"; //hextodec() - Converts a hexadecimal number into a signed decimal number. ::rtfm "idh_scripting_comref.htm#idh_sc_incr"; //incr - Increments a numerical value. ::rtfm "idh_scripting_comref.htm#idh_sc_rand"; //rand() - Generates an integer random number. ::rtfm "idh_scripting_comref.htm#idh_sc_round"; //round() - Rounds a number.
日期处理
1 2 3 4 5
::rtfm "idh_scripting_comref.htm#idh_sc_datediff"; //datediff() - ::rtfm "idh_scripting_comref.htm#idh_sc_datepicker"; //datepicker() - Pops a Date Picker dialog and returns the selected date. ::rtfm "idh_scripting_comref.htm#idh_sc_now"; //now() - Returns the current date/time. ::rtfm "idh_scripting_comref.htm#idh_sc_format"; //format() - Returns a string formatted. ::rtfm "idh_scripting_comref.htm#idh_sc_formatdate"; //formatdate() - Returns a date/time expression in a specific format, optionally shifted by a specific interval.
::rtfm "idh_scripting_comref.htm#idh_sc_asc"; //asc() - Returns the ASCII value of a character. ::rtfm "idh_scripting_comref.htm#idh_sc_base64decode"; //base64decode() - Decodes a Base64-encoded string or file. ::rtfm "idh_scripting_comref.htm#idh_sc_base64encode"; //base64encode() - Encodes a string or file content in Base64. ::rtfm "idh_scripting_comref.htm#idh_sc_charview"; //charview - Shows the characters of a string in a vertical list in various encodings and notations. ::rtfm "idh_scripting_comref.htm#idh_sc_chr"; //chr() - Returns a specific character. This function complements asc(). ::rtfm "idh_scripting_comref.htm#idh_sc_base64encode"; //base64encode() - Encodes a string or file content in Base64. ::rtfm "idh_scripting_comref.htm#idh_sc_compare"; //compare() - Compares two strings. ::rtfm "idh_scripting_comref.htm#idh_sc_eval"; //eval() - Evaluates an expression. ::rtfm "idh_scripting_comref.htm#idh_sc_format"; //format() - Returns a string formatted. ::rtfm "idh_scripting_comref.htm#idh_sc_formatlist"; //formatlist() - Formats a list of items. ::rtfm "idh_scripting_comref.htm#idh_sc_gettoken"; //gettoken() - Returns a substring by index. ::rtfm "idh_scripting_comref.htm#idh_sc_gettokenindex"; //gettokenindex() - Returns the first index of a token in a token list, or the count of its occurrences. ::rtfm "idh_scripting_comref.htm#idh_sc_isunicode"; //isunicode() - Analyzes a text string for the presence of wide characters. ::rtfm "idh_scripting_comref.htm#idh_sc_lax"; //lax() - Allows to define a string in a lax way. ::rtfm "idh_scripting_comref.htm#idh_sc_quote"; //quote() - Double-quotes a string. ::rtfm "idh_scripting_comref.htm#idh_sc_recase"; //recase() - Changes the case of a string. ::rtfm "idh_scripting_comref.htm#idh_sc_regexmatches"; //regexmatches() - Returns a list of all matches of a regular expression pattern in a given string. ::rtfm "idh_scripting_comref.htm#idh_sc_regexreplace"; //regexreplace() - Replaces parts of a string, using a regular expression pattern. ::rtfm "idh_scripting_comref.htm#idh_sc_replace"; //replace() - Replace parts of a string. ::rtfm "idh_scripting_comref.htm#idh_sc_replacelist"; //replacelist() - Replaces substrings by list. ::rtfm "idh_scripting_comref.htm#idh_sc_strlen"; //strlen() - Return the length of a string. ::rtfm "idh_scripting_comref.htm#idh_sc_strpos"; //strpos() - Return position of first occurrence of a string. ::rtfm "idh_scripting_comref.htm#idh_sc_strrepeat"; //strrepeat() - Repeats a string. ::rtfm "idh_scripting_comref.htm#idh_sc_strreverse"; //strreverse() - Reverses a string. ::rtfm "idh_scripting_comref.htm#idh_sc_substr"; //substr() - Return part of a string. ::rtfm "idh_scripting_comref.htm#idh_sc_trim"; //trim() - Strips spaces (or other characters) from the beginning and/or end of a string. ::rtfm "idh_scripting_comref.htm#idh_sc_urldecode"; //urldecode() - Decodes URL-encoded string. ::rtfm "idh_scripting_comref.htm#idh_sc_urlencode"; //urlencode() - URL-encodes string. ::rtfm "idh_scripting_comref.htm#idh_sc_utf8decode"; //utf8decode() - Decodes UTF-8 encoded string. ::rtfm "idh_scripting_comref.htm#idh_sc_utf8encode"; //utf8encode() - Encodes a string to UTF-8.
// in $ListOfKeysInSection the keys are separated by NULL characters: $ListOfKeysInSection = getkey("", "General", "<xydata>\xyplorer.ini"); text replace($ListOfKeysInSection, chr(0), "<crlf>");
//collect a file content into a variable: $INPUT = readfile("<xydata>\xyplorer.ini"); // or nowadays just "<xyini>" text $INPUT;
//initialize the $OUT var or you get "$OUT" as literal text into the output too: //(this could also be used to write a header line for example) $OUT = "";
//for each part (put into "$myVar") from big content (parts are separate here by line break, means "for each line"): foreach( $LINE , $INPUT , "<crlf>" ){
//search for a pattern: //regexmatches( string, pattern, [separator=|], [matchcase=0]) $TMP = regexmatches( $LINE , "backup" );
//if pattern matched, collect the current processed line into a new variable $OUT: if( $TMP != "" ){ $OUT = $OUT . $LINE . "<crlf>"; }
} //test to see what we have collected: text $OUT; //write collection from $OUT to a new text file: //writefile(filename, data, [on_exist], [mode]) //writefile( "%temp%\filename.txt", $OUT) ;
Windows canonical properties (from Vista onwards only!) Tip: The command property() , the Find Files selector prop:, and the <prop …> variable all supports the locale-independent Windows canonical properties as listed here: