formatparse-core 0.8.1

Core Rust library for parsing strings using Python format() syntax (no Python bindings)
Documentation
//! formatparse-core: Core Rust library for parsing strings using Python format() syntax
//!
//! This crate contains the pure Rust logic for pattern parsing, regex generation,
//! and type definitions. It has no dependencies on Python or PyO3.

pub mod datetime;
pub mod error;
pub mod indent_block;
pub mod input_line_continuations;
pub mod lookaround;
pub mod parser;
pub mod types;

pub use datetime::parse_microsecond_digits;
pub use indent_block::strip_common_indent;
pub use input_line_continuations::normalize_input_line_continuations;
pub use lookaround::{
    parse_lookaround_tail, reject_lookaround_in_strftime,
    rewrite_field_fragments_for_engine_anchor, split_type_base_and_lookaround_tail,
};
pub use parser::pattern::{
    field_types_match, parse_field, parse_field_path, parse_format_spec, parse_pattern,
    validate_multiline_mvp, ParsedPatternParts, MAX_NESTED_FORMAT_DEPTH,
};
pub use parser::{
    count_capturing_groups, validate_field_name, validate_input_length, validate_pattern_length,
    MAX_FIELDS, MAX_FIELD_NAME_LENGTH, MAX_INPUT_LENGTH, MAX_PATTERN_LENGTH,
};

pub use parser::regex::*;
pub use types::regex::strftime_to_regex;
pub use types::{FieldSpec, FieldType};