Michael Schnell wrote:
On 04/16/2016 11:02 AM, Mattias Gaertner wrote:
For instance using {$codepage utf8} tells the compiler to convert all
your literals to UTF-16. Without the {$codepage} the compiler
preserves the real codepage.
I.e. (compiling in a UTF-8 based Linux)
- using {$codepage utf
On 04/16/2016 11:02 AM, Mattias Gaertner wrote:
StringCodePage on a literal is pretty useless. You should use
StringCodePage on variables.
Just exploring how the compiler works...
-Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
h
On 04/16/2016 11:02 AM, Mattias Gaertner wrote:
For instance using {$codepage utf8} tells the compiler to convert all
your literals to UTF-16. Without the {$codepage} the compiler
preserves the real codepage.
I.e. (compiling in a UTF-8 based Linux)
- using {$codepage utf8} tells the compiler
On 04/16/2016 10:47 AM, Mattias Gaertner wrote:
That's correct. String literals in a codepage other than system are
stored as UTF-16 in the binary
(Assuming with "other than system" you mean different from the
DefaultSystemcodepage setting the compiler sees at it's runtime).
I see. And of c
On 2016-04-18 19:26, Luiz Americo Pereira Camara wrote:
> I propose to write a test suite first with the desired output, based on
> Delphi.
Fantastic idea! Test Driven Development - the best way to write any
software.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free
On Mon, 18 Apr 2016, Luiz Americo Pereira Camara wrote:
2016-04-18 13:47 GMT-03:00 Bart :
[..]
The internal processing of the (edit)mask is the same as TMaskEdit.
If that is broken somehow, it is also broken in TMaskEdit.
The only functions that may need adjustments are
* function FormatM
El 18/04/16 a les 09:53, Marco van de Voort ha escrit:
In our previous episode, J?rgen Hestermann said:
> in loops. (it is that way in M2 btw, where the basetype is unsigned. Not
> happy with that)
I don't know what you mean.
A For-loop has it's limits anyway.
Limits like in
for i:=0 to
2016-04-18 13:47 GMT-03:00 Bart :
[..]
> The internal processing of the (edit)mask is the same as TMaskEdit.
> If that is broken somehow, it is also broken in TMaskEdit.
>
> The only functions that may need adjustments are
>
> * function FormatMaskText(const EditMask: string; const AValue: string
On 4/18/16, Michael Van Canneyt wrote:
> I think Bart meant that the maskutils unit should simply use unicodestring.
> Given that it almost surely will need to deal with $ and € etc, that seems
> like a better approach.
Yep.
In UTF8 the 1 on 1 relation between the internal mask structure and
the
Am Monday 18 April 2016 17:34:10 schrieb Dennis:
> I am want to embed the SNTP into my applications so that I don't have to
> run Dimension 4 or other software to correct my PC Clock.
Synapse
http://synapse.ararat.cz/doc/help/sntpsend.TSNTPSend.html
__
On 2016-04-18 16:34, Dennis wrote:
> I am want to embed the SNTP into my applications
Take a look at the Indy 10.6.0.2 components, they have the SNTP protocol
implemented. They are free and open source. Get the latest code from
their code repository.
Official SVN repository:
https://svn.at
Am 2016-04-18 um 11:33 schrieb Sven Barth:
Am 18.04.2016 07:58 schrieb "Jürgen Hestermann" mailto:juergen.hesterm...@gmx.de>>:
> And why was a directive implemented to use 0-based indices
> even for strings but none for 1-based indices in dynamic arrays?
> IMO the latter would be much more desir
Am 2016-04-18 um 09:53 schrieb Marco van de Voort:
Limits like in
for i:=0 to someexpression.count-1
are evaluated as expression before using the result to for. If count=0 this
would become for i:=0 to $, so you need to guard this with a if
count>0 then.
Well, for 1-based arrays it w
I am want to embed the SNTP into my applications so that I don't have to
run Dimension 4 or other software to correct my PC Clock.
Thanks in advance.
Dennis
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bi
On Mon, 18 Apr 2016, Graeme Geldenhuys wrote:
On 2016-04-18 15:51, Bart wrote:
Maybe a version of maskutils unit based on UnicodeString should also
be made?
This seems so redundant. I still need to study the new FPC 3.0 string
handling, but I was hoping such duplication of implementations w
On 2016-04-18 15:51, Bart wrote:
> Maybe a version of maskutils unit based on UnicodeString should also
> be made?
This seems so redundant. I still need to study the new FPC 3.0 string
handling, but I was hoping such duplication of implementations would not
be necessary with newer FPC versions. We
On 4/18/16, Bart wrote:
>> I recently did some work on it; the class works completely wrong IMO, and
As a side note:
function ValidateInput : string;
The function raises an exception upon failure.
Since we did not have to follow Delphi here, a better declaration IMHO
would have been:
function V
On 4/18/16, Michael Van Canneyt wrote:
> I recently did some work on it; the class works completely wrong IMO, and I
> though to replace it completely with the functions found in the LCL.
Yep, I was going that way too (and started coding it so).
Currently FormatMaskText from maskedit (LCL) behav
On Sun, 17 Apr 2016, Bart wrote:
Hi,
I cannot find any documentation about TMaskUtils.ValidateInput
function (unit MaskUtils).
AFAICS Delphi does not have such a class?
(ref: http://docwiki.embarcadero.com/Libraries/XE6/en/System.MaskUtils)
There are some bugreports about this unit in Mantis
Am 18.04.2016 07:58 schrieb "Jürgen Hestermann" :
> And why was a directive implemented to use 0-based indices
> even for strings but none for 1-based indices in dynamic arrays?
> IMO the latter would be much more desired.
The usual reason: Delphi compatibility. If Delphi wouldn't have that
direct
In our previous episode, J?rgen Hestermann said:
> > in loops. (it is that way in M2 btw, where the basetype is unsigned. Not
> > happy with that)
>
> I don't know what you mean.
> A For-loop has it's limits anyway.
Limits like in
for i:=0 to someexpression.count-1
are evaluated as expressio
21 matches
Mail list logo