UNPKG

odatafy-parser

Version:

generate odatafy ast from odata query parameters

22 lines (21 loc) 1.02 kB
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 escapeFunctions(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>, funcResolver: Record<string, string>, strResolver: Record<string, string>): string; export declare function reverseExprLogic(expr: string): string; export default function filterExpressionPreProc(expr: string): string;