Corretti guai con righe lunghe e formattazioni complesse
git-svn-id: svn://10.65.10.50/trunk@2723 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
785f657ebd
commit
b14e56fb6c
@ -3,7 +3,7 @@
|
||||
#include <ctype.h>
|
||||
#include <applicat.h>
|
||||
|
||||
static char TEXT_TMP[257];
|
||||
static char TEXT_TMP[512];
|
||||
|
||||
class _HotSpot : public TObject
|
||||
{
|
||||
@ -269,7 +269,7 @@ void TTextfile::read_line (
|
||||
|
||||
if (len == 0) len = id.len();
|
||||
|
||||
TString256 txt;
|
||||
TString txt(512);
|
||||
TFieldtypes type;
|
||||
|
||||
if (_rel != NULL)
|
||||
@ -429,7 +429,7 @@ long TTextfile::search(
|
||||
|
||||
// @comm Cerca in una riga per volta rispettando i formati
|
||||
{
|
||||
TString256 lin; TString80 text(txt);
|
||||
TString lin(512); TString80 text(txt);
|
||||
if (!casesens)
|
||||
text.lower();
|
||||
|
||||
@ -464,7 +464,7 @@ int TTextfile::replace(
|
||||
bool sforating = FALSE;
|
||||
|
||||
// here's a nice casin
|
||||
while(i < 256)
|
||||
while(i < 512)
|
||||
{
|
||||
if (!sforating)
|
||||
{
|
||||
@ -734,7 +734,7 @@ bool TTextfile::write (
|
||||
if ((fp = fopen (path, "w")) != NULL)
|
||||
{
|
||||
ok = TRUE;
|
||||
TString256 s;
|
||||
TString s(512);
|
||||
long starty = from == NULL ? 0l : from->y;
|
||||
int startx = from == NULL ? 0 : (int) from->x;
|
||||
long endy = to == NULL ? _lines - 1l : to->y;
|
||||
@ -793,7 +793,7 @@ TTextfile ::TTextfile (const char *file, int pagesize, direction preferred,
|
||||
bool interactive):
|
||||
_page_size (pagesize), _page (pagesize), _filename (file), _lines (0l),
|
||||
_index (NULL), _page_start (0l), _page_end (-1l), _direction (preferred),
|
||||
_dirty (FALSE), _istemp (FALSE), _item (0), _line (256), _cur_line (-1),
|
||||
_dirty (FALSE), _istemp (FALSE), _item (0), _line (512), _cur_line (-1),
|
||||
_hotspots (4), _accept (TRUE), _dirty_lines(pagesize),
|
||||
_interactive(interactive), _rel(NULL)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user