UNPKG

odatafy-parser

Version:

generate odatafy ast from odata query parameters

21 lines (20 loc) 895 B
export declare enum Prefixes { Str_Escape = "$", Func_Escape = "%", Expr_Escape = "\u00A7", Multiexpr_Escape = "&" } export declare function getIdentifier(prefix: Prefixes): string; export declare function escapeStrings(expr: string): (string | Record<string, string>)[]; export declare function hasOnlyMatchingParentheses(expr: string): boolean; export declare function escapeExpression(expr: string, depth?: number): string; export declare function reverseEscaped(expr: string, resolvers: { [key: string]: { toEscape: string; depth: number; not: boolean; }; }): string; export declare function resolveExpression(expr: string, exprResolver: Record<string, string>, strResolver: Record<string, string>): string; export declare function reverseExprLogic(expr: string): string; export default function searchExpressionPreProc(expr: string): string;