Skip to content

1.11.9

Compare
Choose a tag to compare
@aslze aslze released this 20 Jul 20:29
· 87 commits to master since this release

ASL version 1.11.9

Fixes and little improvements.

  • Fixed Array2<T> constructor from pointer to data and sizes
  • Fixed IniFile::values() for some old gcc
  • Moved encodeUrl() and decodeUrl() to struct Url as static functions and improved them
  • Now Url::encode(str) works like JS encodeURI(), and Url::encode(str, true) works like JS encodeURIComponent()
  • Fixed HttpServer to serve files with non-ASCII names (request paths are URL-decoded first)
  • Fixed Json::decode() to support escaped Unicode non-BMP chars (e.g. emojis, like "\ud83d\ude00")
  • Fixed String::count() for non-BMP characters
  • Added String::wlength() to count UTF16 code units (length of wchar_t* string)
  • Added Stringconstructors from Unicode code points (single code or array)
  • Added Xml:value<T>()
  • Windows Console now sets the system code page in ASL_ANSI mode by default, and added .setCP() to change it
  • Improvements in ASL_ANSI mode (Url::decode() and Json::decode will translate escaped chars to local charset, if possible)
  • Added Matrix<T>::op=(init_list) that copies new data without allocating and freeing
  • Added operator Matrix3 ^ Vec2 for projective transformation (same in Matrix4 ^ Vec3)