tranleduy2000 / pascalnide

Pascal Compiler for Android
92 stars 25 forks source link

[SysUtils unit] Format function is missing #6

Closed pakLebah closed 7 years ago

pakLebah commented 7 years ago

In SysUtils unit, the format() function is missing. It's to use string formatting with formatting symbols. The symbols are similar to C's string formatting.

Example:

writeln(format('%s = %d',['text',123]));

Reference: https://www.freepascal.org/docs-html/rtl/sysutils/format.html

tranleduy2000 commented 7 years ago

Format function is supported in v4.0.1 https://github.com/tranleduy2000/pascalnide/releases/tag/v4.0.1 See commit https://github.com/tranleduy2000/pascalnide/commit/75a361ecb36ac6dab9eb2ac211a65e0203680f03

Reference https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html