mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
removed setParseFlags from the D-binding
This commit is contained in:
parent
ac7b059b9c
commit
58b590887d
1 changed files with 1 additions and 19 deletions
|
@ -159,25 +159,6 @@ struct ParseState
|
|||
return psyc_parse(this, &oper, cast(String*) &name, cast(String*) &value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Change parse flags in state
|
||||
*
|
||||
* Params:
|
||||
* state = Pointer to the state struct that should be initialized.
|
||||
* flags = Flags to be set for the parser, see psycParseFlag.
|
||||
*
|
||||
* See_Also: psyc_initParseState psycParseFlag
|
||||
*/
|
||||
void setParseFlags (ParseFlag flags)
|
||||
{
|
||||
this.flags = flags;
|
||||
|
||||
if (flags & ParseFlag.START_AT_CONTENT)
|
||||
this.part = Part.CONTENT;
|
||||
else
|
||||
this.part = Part.ROUTING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a new buffer in the parser state struct with data to be parsed.
|
||||
*
|
||||
|
@ -265,6 +246,7 @@ struct ParseState
|
|||
|
||||
void getRemainingBuffer ( ref ubyte[] buf )
|
||||
{
|
||||
|
||||
buf = this.buffer.ptr[cursor .. cursor + getRemainingLength()];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue