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
c5cfa7e119
commit
c0b78df2ba
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);
|
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.
|
* 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 )
|
void getRemainingBuffer ( ref ubyte[] buf )
|
||||||
{
|
{
|
||||||
|
|
||||||
buf = this.buffer.ptr[cursor .. cursor + getRemainingLength()];
|
buf = this.buffer.ptr[cursor .. cursor + getRemainingLength()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue