www.digitalmars.com Home | Search | D | Comments
Last update Wed May 10 12:07:49 2006
D
Language
Phobos
Comparisons


object

std
 std.base64
 std.boxer
 std.compiler
 std.conv
 std.cover
 std.ctype
 std.date
 std.demangle
 std.file
 std.format
 std.gc
 std.intrinsic
 std.math
 std.md5
 std.mmfile
 std.openrj
 std.outbuffer
 std.path
 std.process
 std.random
 std.regexp
 std.socket
 std.socketstream
 std.stdint
 std.stdio
 std.cstream
 std.stream
 std.string
 std.system
 std.thread
 std.uni
 std.uri
 std.utf
 std.zip
 std.zlib
 std.c.fenv
 std.c.math
 std.c.process
 std.c.stdarg
 std.c.stddef
 std.c.stdio
 std.c.stdlib
 std.c.string
 std.c.time
 std.c.wcharh
 std.windows.charset

std.windows

std.linux

std.c.windows

std.c.linux

std.openrj

Open-RJ mapping for the D standard library.

Authors:
Matthew Wilson

References:
Open-RJ

enum ORJ_FLAG;
Flags that moderate the creation of Databases

ORDER_FIELDS
Arranges the fields in alphabetical order

ELIDE_BLANK_RECORDS
Causes blank records to be ignored

char[] toString(ORJ_FLAG f);


enum ORJRC;
General error codes

SUCCESS
Operation was successful

CANNOT_OPEN_JAR_FILE
The given file does not exist, or cannot be accessed

NO_RECORDS
The database file contained no records

OUT_OF_MEMORY
The API suffered memory exhaustion

BAD_FILE_READ
A read operation failed

PARSE_ERROR
Parsing of the database file failed due to a syntax error

INVALID_INDEX
An invalid index was specified

UNEXPECTED
An unexpected condition was encountered

INVALID_CONTENT
The database file contained invalid content

char[] toString(ORJRC f);


enum ORJ_PARSE_ERROR;
Parsing error codes

SUCCESS
Parsing was successful

RECORD_SEPARATOR_IN_CONTINUATION
A record separator was encountered during a content line continuation

UNFINISHED_LINE
The last line in the database was not terminated by a line-feed

UNFINISHED_FIELD
The last field in the database file was not terminated by a record separator

UNFINISHED_RECORD
The last record in the database file was not terminated by a record separator

char[] toString(ORJ_PARSE_ERROR f);


class OpenRJException: object.Exception;


class DatabaseException: std.openrj.OpenRJException;


ORJRC rc();


ORJ_PARSE_ERROR parseError();


int lineNum();


class InvalidKeyException: std.openrj.OpenRJException;


class InvalidTypeException: std.openrj.OpenRJException;


class Field;
Represents a field in the database

final char[] name();


final char[] value();


Record record();


class Record;
Represents a record in the database, consisting of a set of fields

uint numFields();


uint length();


Field[] fields();


Field opIndex(uint index);


char[] opIndex(char[] fieldName);


Field getField(char[] fieldName);


Field findField(char[] fieldName);


int hasField(char[] fieldName);


Database database();


int opApply(int delegate(inout Field field) dg);


int opApply(int delegate(char[] name, char[] value) dg);


class Database;


this(char[] memory, uint flags);


this(char[][] lines, uint flags);


uint numRecords();


uint numFields();


uint numLines();


uint flags();


Record[] records();


Field[] fields();


uint length();


Record opIndex(uint index);


Record[] getRecordsContainingField(char[] fieldName);


Record[] getRecordsContainingField(char[] fieldName, char[] fieldValue);


int opApply(int delegate(inout Record record) dg);


int opApply(int delegate(inout Field field) dg);