Change Log for the latest
XYplorer BETA version:
Code: Select all
v18.20.0303 - 2017-08-27 13:09
+ Toolbar | Touchscreen Mode: Now "Scale Font" is always available, also
when in Touchscreen Mode.
+ Toolbar | Touchscreen Mode: Now List columns are autosized as needed.
* SC Text: Increased default width from 600 to 800.
Syntax: text text, [width=800], [height=400], [caption], [wrap], [linebreaker="<br>"]
* SC HexDump enhanced: The "unicode" argument has more values now.
Syntax: hexdump(string, [unicode], [switches])
unicode: (bit field) [optional]
0 = left section: show one hex byte per character [Default]
right section: show one character per hex byte
1 = left section: show two hex bytes per character
2 = right section: show one character per two hex bytes
Examples:
text hexdump("text", 0); //00000000: 74 65 78 74 text
text hexdump("text", 1); //00000000: 74 00 65 00 78 00 74 00 t.e.x.t.
text hexdump("text", 2); //00000000: 74 65 78 74 <2 Chinese characters>
text hexdump("text", 3); //00000000: 74 00 65 00 78 00 74 00 text
* SC ReadFile: The recently added "r" mode is now called "ru". The "r" mode
was changed to keep the original number of bytes. Only then it really
corresponds to SC writefile "r" mode.
Name: ReadFile
Action: Read data from file into string.
Syntax: readfile([filename], [mode], [numbytes])
filename: file full path/name, or relative to current path
defaults to the current file
mode:
t: [default] text
whether file is ASCII or UNICODE is auto-detected
b: binary (converts bytes according to the active codepage)
corresponds to mode "b" in WriteFile()
r: raw bytes (binary safe, no conversion)
corresponds to mode "r" in WriteFile()
ru: like "r" but converted to unicode (2 bytes per character) and thus
displayable as text
Examples:
// showing the first 50 bytes of the current file as hex dump:
text hexdump(readfile( , "b", 50)); //conversions possible
text hexdump(readfile( , "r", 50), 1); //you see the true bytes
text hexdump(readfile( , "ru", 50)); //you see the true bytes
// read and write the current file in "r" mode; source and target will
// be 100% identical independently of your locale
writefile("test-out.txt", readfile(, "r"), , "r");
Obviously, the "ru" mode is recommended when doing a hex dump.
* SC WriteFile: Added an "ru" mode corresponding to "ru" in SC ReadFile.
Syntax: writefile(filename, data, [on_exist], [mode])
mode:
t: [default] text; auto-detects whether text can be written as ASCII
or needs to be written as UNICODE
ta: text ASCII (1 byte per char); wide chars (upper Unicode) are represented by "?"
NOTE: will convert unicode text to ANSI according to the current codepage!
tu: text UNICODE (2 bytes per char);
auto-puts UTF-16 LE BOM at file beginning (LE BOM = Little Endian
Byte Order Mark: 0xFFFE)
b: same as "ta", but kept for symmetry with SC readfile's "b" mode.
r: raw bytes: writes the passed bytes without any conversion;
note that in literal text each character has 2 bytes
(same as "tu", but without auto-BOM)
ru: like "r" but converted from unicode (2 bytes per character) down
to 1 byte per character
Example:
// read and write the current file in "ru" mode; source and target will
// be 100% identical independently of your locale
writefile("test-out.txt", readfile(, "ru"), , "ru");
Note, however, that using "r" modes is recommended for speed:
writefile("test-out.txt", readfile(, "r"), , "r");
To
download the latest BETA version choose a download package: (1)
Installer Package, (2)
No-Install Package.
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned.
It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...)
before running a new BETA version. This will also help in fixing any fresh bugs.