Re: [fpc-pascal] Best integer type to be used for string indexes

2011-06-19 Thread Michael Van Canneyt
On Sat, 18 Jun 2011, Vladimir Zhirov wrote: Hi, Reviewing a bunch of my string processing functions made me wonder what integer type should I use for position / length parameters. I used to plain "Integer" for this task, but looking through RTL and LCL code I noticed that sometimes SizeInt a

[fpc-pascal] Re: Android4Pascal - How Does it Work?

2011-06-19 Thread leledumbo
https://p-tools.svn.sourceforge.net/svnroot/p-tools/systeminfo4android/androidpipescomm.pas This is the core of all communications between the Pascal code and Android. What does it use to communicate do you think? ;) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.c

Re: [fpc-pascal] Best integer type to be used for string indexes

2011-06-19 Thread Mattias Gaertner
On Sun, 19 Jun 2011 11:28:22 +0200 (CEST) Michael Van Canneyt wrote: > > > On Sat, 18 Jun 2011, Vladimir Zhirov wrote: > > > Hi, > > > > Reviewing a bunch of my string processing functions > > made me wonder what integer type should I use for > > position / length parameters. > > > > I used to

Re: [fpc-pascal] Best integer type to be used for string indexes

2011-06-19 Thread Michael Van Canneyt
On Sun, 19 Jun 2011, Mattias Gaertner wrote: On Sun, 19 Jun 2011 11:28:22 +0200 (CEST) Michael Van Canneyt wrote: On Sat, 18 Jun 2011, Vladimir Zhirov wrote: Hi, Reviewing a bunch of my string processing functions made me wonder what integer type should I use for position / length para

Re: [fpc-pascal] Best integer type to be used for string indexes

2011-06-19 Thread Mattias Gaertner
On Sun, 19 Jun 2011 23:57:04 +0200 (CEST) Michael Van Canneyt wrote: >[...] > >> Ansistring is not capable of keeping more than High(Integer) bytes. > > > > That's not true. At least 3*high(integer) compiles and runs fine here on > > 64bit: > > > > var > > s: ansistring; > > begin > > SetLength