IniNotify

[Source]

Notifications for INI parsing.

interface ref IniNotify

Public Functions

apply

[Source]

This is called for every valid entry in the INI file. If key/value pairs occur before a section name, the section can be an empty string. Return false to halt processing.

fun ref apply(
  section: String val,
  key: String val,
  value: String val)
: Bool val

Parameters

Returns

add_section

[Source]

This is called for every valid section in the INI file. Return false to halt processing.

fun ref add_section(
  section: String val)
: Bool val

Parameters

Returns

errors

[Source]

This is called for each error encountered. Return false to halt processing.

fun ref errors(
  line: USize val,
  err: (IniIncompleteSection val | IniNoDelimiter val))
: Bool val

Parameters

Returns

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/ini-IniNotify