summaryrefslogtreecommitdiff
path: root/tex/context/base/l-io.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2008-03-10 23:20:00 +0100
committerHans Hagen <pragma@wxs.nl>2008-03-10 23:20:00 +0100
commite4c575ea1e6cb242b3b8441eb4febc0e469412f2 (patch)
tree5ddbbc41a6aea426dac1386905e1a0953b2ca3b6 /tex/context/base/l-io.lua
parentf0302311dd47bf250c0e2b5f8be46f21437f43d8 (diff)
downloadcontext-e4c575ea1e6cb242b3b8441eb4febc0e469412f2.tar.gz
stable 2008.03.10 23:20
Diffstat (limited to 'tex/context/base/l-io.lua')
-rw-r--r--tex/context/base/l-io.lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/tex/context/base/l-io.lua b/tex/context/base/l-io.lua
index 7d3fea163..a178c838f 100644
--- a/tex/context/base/l-io.lua
+++ b/tex/context/base/l-io.lua
@@ -67,38 +67,10 @@ function io.noflines(f)
return n
end
---~ t, f, n = os.clock(), io.open("testbed/sample-utf16-bigendian-big.txt",'rb'), 0
---~ for a in io.characters(f) do n = n + 1 end
---~ print(string.format("characters: %s, time: %s", n, os.clock()-t))
-
do
local sb = string.byte
---~ local nextchar = {
---~ [ 4] = function(f)
---~ return f:read(1), f:read(1), f:read(1), f:read(1)
---~ end,
---~ [ 2] = function(f)
---~ return f:read(1), f:read(1)
---~ end,
---~ [ 1] = function(f)
---~ return f:read(1)
---~ end,
---~ [-2] = function(f)
---~ local a = f:read(1)
---~ local b = f:read(1)
---~ return b, a
---~ end,
---~ [-4] = function(f)
---~ local a = f:read(1)
---~ local b = f:read(1)
---~ local c = f:read(1)
---~ local d = f:read(1)
---~ return d, c, b, a
---~ end
---~ }
-
local nextchar = {
[ 4] = function(f)
return f:read(1,1,1,1)