::CLASS lightline PUBLIC

representation of a source line
insertions can be made nefore or after any character position
the complete edited line can then be reconstituted
Definition at line 96 of colourable.cls

Public Methods

  addpost (index, toadd)
add a string after a character position
  addpre (index, toadd)
add a string before a character position
  init (src)
no comment
string tohtmlstring ()
return the string with any additions inserted
string tostring ()
return the string with any additions inserted

Public Attributes

  post
directory of insertions post character
  pre
directory of insertions pre character
  src
the source line
  srclen
length of source line

Instantiated by

colourable.cls line 59

Feature Detail

::ATTRIBUTE pre
directory of insertions pre character
Definition at line 98 of colourable.cls
Dynamically referenced by
colourable.cls line 108 "self~pre = .directory~new"
colourable.cls line 117 "if self~pre~hasindex(index)"
colourable.cls line 119 "self~pre[index] = toadd || self~pre[index]"
colourable.cls line 119 "self~pre[index] = toadd || self~pre[index]"
colourable.cls line 122 "self~pre[index] = toadd"
colourable.cls line 161 "if self~pre~hasindex(j)"
colourable.cls line 162 "pre = self~pre[j]"
colourable.cls line 181 "if self~pre~hasindex(j)"
colourable.cls line 182 "pre = self~pre[j]"

::ATTRIBUTE post
directory of insertions post character
Definition at line 99 of colourable.cls
Dynamically referenced by
colourable.cls line 109 "self~post = .directory~new"
colourable.cls line 131 "if self~post~hasindex(index)"
colourable.cls line 133 "self~post[index] = self~post[index] || toadd"
colourable.cls line 133 "self~post[index] = self~post[index] || toadd"
colourable.cls line 136 "self~post[index] = toadd"
colourable.cls line 164 "if self~post~hasindex(j)"
colourable.cls line 165 "post = self~post[j]"
colourable.cls line 184 "if self~post~hasindex(j)"
colourable.cls line 185 "post = self~post[j]"

::ATTRIBUTE src
the source line
Definition at line 100 of colourable.cls
Dynamically referenced by
colourable.cls line 106 "self~src = src"
colourable.cls line 143 "copysrc = self~src"
colourable.cls line 174 "copysrc = self~src"
documents.cls line 306 "return self~rxprogram~src"
htmlrexxsource.cls line 88 "col = .colourable~new(file~document~src)"

::ATTRIBUTE srclen
length of source line
Definition at line 101 of colourable.cls
Dynamically referenced by
colourable.cls line 107 "self~srclen = src~length"
colourable.cls line 145 "do j = 1 to self~srclen"
colourable.cls line 176 "do j = 1 to self~srclen"

::METHOD init
Parameters
src - the source line
Definition at line 104 of colourable.cls

::METHOD addpre
add a string before a character position
Parameters
index - 1index of character
toadd - string to add
Definition at line 114 of colourable.cls
Dynamically referenced by
colourable.cls line 77 "self~lines[line]~addpre(col, toadd)"
colourable.cls line 86 "self~lines[line]~addpre(col, toadd)"
htmlrexxsource.cls line 249 "col~addpre(rdc~startline, 1, '<a name='rdc~hsrcanchor'></a>')"
htmlrexxsource.cls line 256 "col~addpre(i~startline, i~startcol, '<span class="syncomment">')"
htmlrexxsource.cls line 285 "col~addpre(i~startline, i~startcol, '<span class="syncharliteral">')"
htmlrexxsource.cls line 299 "col~addpre(c~startline, 1, '<a name='c~hsrcanchor'></a>')"
htmlrexxsource.cls line 308 "col~lines[j]~addpre(1, '<span class="synlinecount">'j~right(5,'0')'</span> ')"

::METHOD addpost
add a string after a character position
Parameters
index - 1index of character
toadd - string to add
Definition at line 128 of colourable.cls
Dynamically referenced by
colourable.cls line 82 "self~lines[line]~addpost(col, toadd)"
colourable.cls line 90 "self~lines[line]~addpost(col, toadd)"
htmlrexxsource.cls line 257 "col~addpost(i~feature~endline, i~endcol, '</span>')"
htmlrexxsource.cls line 286 "col~addpost(i~endline, i~endcol, '</span>')"

::METHOD tohtmlstring
return the string with any additions inserted
the original string is cleaned for html use
Returns
string
Definition at line 142 of colourable.cls
Dynamically referenced by
htmlrexxsource.cls line 95 "tp~queue(i~tohtmlstring)"

::METHOD tostring
return the string with any additions inserted
Returns
string
Definition at line 173 of colourable.cls
Dynamically referenced by
colourable.cls line 69 "q~queue(i~toString)"


Get RexxLiterate at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on 31 Aug 2010 05:20:02 for RexxLiterate by rexxliterate  0.0.1