summary refs log tree commit diff stats
path: root/doc/pydoc/test.html
Commit message (Expand)AuthorAgeFilesLines
* rebuilt pydochut2010-03-311-3/+4
* updated pydochut2010-03-121-1/+1
* updated pydochut2010-03-121-5/+17
* incremented version number and updated pydoc html files v1.0.3hut2010-02-161-7/+9
* 1.0.2! v1.0.2hut2010-01-141-5/+6
* updated pydoc documentationhut2010-01-021-6/+8
* moved pydoc pages to doc/pydochut2009-12-251-0/+34
:03:46 +0100 incremented version number and updated pydoc html files' href='/akspecs/ranger/commit/doc/pydoc/ranger.fsobject.html?h=v1.2.0&id=34a60763e79546e0f84e30fbcc430632f3dbb39e'>34a60763 ^
f07bb12f ^









34a60763 ^
f07bb12f ^



34a60763 ^


f07bb12f ^






34a60763 ^
f07bb12f ^


34a60763 ^
c776804d ^
f07bb12f ^

34a60763 ^
f07bb12f ^



34a60763 ^





f07bb12f ^









34a60763 ^
f07bb12f ^

34a60763 ^
f07bb12f ^

f07bb12f ^

34a60763 ^

f07bb12f ^












1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
 

                                                              






                                                                                                                                                              
# new type to help incrementally read texts (arrays of characters)
container stream [
  index:number
  data:address:shared:array:character
]

def new-stream s:address:shared:array:character -> result:address:shared:stream [
  local-scope
  load-ingredients
  result <- new stream:type
  *result <- put *result, index:offset, 0
  *result <- put *result, data:offset, s
]

def rewind-stream in:address:shared:stream -> in:address:shared:stream [
  local-scope
  load-ingredients
  *in <- put *in, index:offset, 0
]

def read-line in:address:shared:stream -> result:address:shared:array:character, in:address:shared:stream [
  local-scope
  load-ingredients
  idx:number <- get *in, index:offset
  s:address:shared:array:character <- get *in, data:offset
  next-idx:number <- find-next s, 10/newline, idx
  result <- copy-range s, idx, next-idx
  idx <- add next-idx, 1  # skip newline
  # write back
  *in <- put *in, index:offset, idx
]

def end-of-stream? in:address:shared:stream -> result:boolean [
  local-scope
  load-ingredients
  idx:number <- get *in, index:offset
  s:address:shared:array:character <- get *in, data:offset
  len:number <- length *s
  result <- greater-or-equal idx, len
]