Changeset 7336
- Timestamp:
- 02/04/11 10:06:46 (14 years ago)
- Location:
- issm/trunk/src/m/kml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/kml/kml_object.m
r7297 r7336 11 11 % arguments constructs a new instance from the arguments. 12 12 % 13 classdef kml_object 13 classdef kml_object < handle 14 14 properties 15 15 id =''; -
issm/trunk/src/m/kml/string_buf.m
r7297 r7336 18 18 % arguments constructs a new instance from the arguments. 19 19 % 20 classdef string_buf 20 classdef string_buf < handle 21 21 properties 22 init =1000000 ;23 inc =100000 ;24 max =10000000 ;22 init =10000000; 23 inc =1000000; 24 max =100000000; 25 25 end 26 26 % properties (SetAccess = private, GetAccess = private) … … 148 148 % check the buffer size and increase as necessary 149 149 150 while (sbuf.len+length(str) > sbuf.size) 150 slen=length(str); 151 while (sbuf.len+slen > sbuf.size) 151 152 if (sbuf.size+sbuf.inc <= sbuf.max) 152 153 sbuf.string=[sbuf.string blanks(sbuf.inc)]; … … 160 161 % copy the string into the buffer 161 162 162 sbuf.string(sbuf.len+1:sbuf.len+ length(str))=str;163 sbuf.len=sbuf.len+ length(str);163 sbuf.string(sbuf.len+1:sbuf.len+slen)=str; 164 sbuf.len=sbuf.len+slen; 164 165 165 166 end
Note:
See TracChangeset
for help on using the changeset viewer.