Roxen.git/
server/
modules/
misc/
randomtext.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2015-10-23
2015-10-23 13:54:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>
84aee5be36612de01de322be97ccf4ab5ee8c06b (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
6983e3e3128b93948cdd93fe9bc273ff8cac3e63
Merge commit '8a2ce4a87' into patches/bug7582
* commit '8a2ce4a87': (7413 commits)
1:
+
// This is a roxen module. Copyright © 2000 - 2009, Roxen IS.
+
// randomtext.pike -- random text generator module // // By Leif Stensson.
58:
#include <module.h>
-
string version = "
$Id: randomtext.pike,v 1.6 2001/05/04 13:54:24 leif Exp $
";
+
string version = "
$Id$
";
constant module_type = MODULE_TAG; constant module_name = "Random Text";
131:
searchpath = searchpath[0..sizeof(searchpath)-2]; }
-
static
int isalnum(string c)
+
protected
int isalnum(string c)
{ if (!stringp(c) || sizeof(c) != 1) return 0;
140:
return 0; }
-
static
int isidchar(string c)
+
protected
int isidchar(string c)
{ return isalnum(c) || c == "-" || c == "_";}
-
static
int isopchar(string c)
+
protected
int isopchar(string c)
{ return (< "+", "-", "*", "/", "%", "!", "=", "<", ">" >)[c];} mixed evalexpr(string expr, mapping args)
406:
} string rtt_read(string path)
-
{ int lineno = 0; string line, mode = 0
, tmp
;
+
{ int lineno = 0; string line, mode = 0;
mapping sections = ([ "steps": 0 ]); string this_section = "***"; int secindex = -1;