1HTMLDocument.substring(3kaya)Kaya module referenceHTMLDocument.substring(3kaya)
2
3
4

NAME

6       HTMLDocument::substring  -  Converts  a  part of the document to string
7       form
8

SYNOPSIS

10       String substring( ElementTree  tree,  UnicodeFormat  uform=LiteralUTF8,
11       Doctype doctype=HTML4Strict )
12

ARGUMENTS

14       tree  An  element  from  the document body (it may be the document body
15       itself)
16
17       uform The method for  displaying  multibyte  Unicode  characters.  This
18       argument is optional, with a default of LiteralUTF8
19
20       doctype  The  document  type declaration to assume for conversion. This
21       need not be the same as the doctype used for the HTMLDocument, if  this
22       element tree is part of a HTMLDocument. This argument is optional, with
23       a default of HTML4Strict
24
25

DESCRIPTION

27       Convert a part of the document (or a fragment of  HTML  unconnected  to
28       the document) into String form. This can be used as an easy way of giv‐
29       ing HTML source examples:
30
31
32    p = addParagraph(parent,"An image: ");
33    img = addImage(p,ImageData("example.png","an example",Unspecified));
34    p2 = addParagraph(parent,"HTML code for the image: "+substring(img));
35

AUTHORS

37       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
38       (kaya@kayalang.org). For further information see http://kayalang.org/
39

LICENSE

41       The  Kaya  standard  library  is free software; you can redistribute it
42       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
43       License  (version  2.1  or  any later version) as published by the Free
44       Software Foundation.
45
47       HTMLDocument.Doctype (3kaya)
48       ElementTreeData.UnicodeFormat (3kaya)
49       HTMLDocument.string (3kaya)
50
51
52
53Kaya                             December 2010   HTMLDocument.substring(3kaya)
Impressum