aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/compiler/compiler.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:08 +0300
commit4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch)
tree506dac10f5df94fab310584ee51b24fc5a081c22 /contrib/libs/hyperscan/src/compiler/compiler.h
parent2d37894b1b037cf24231090eda8589bbb44fb6fc (diff)
downloadydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/compiler/compiler.h')
-rw-r--r--contrib/libs/hyperscan/src/compiler/compiler.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/contrib/libs/hyperscan/src/compiler/compiler.h b/contrib/libs/hyperscan/src/compiler/compiler.h
index b42cb1425b..f6d5200f3b 100644
--- a/contrib/libs/hyperscan/src/compiler/compiler.h
+++ b/contrib/libs/hyperscan/src/compiler/compiler.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2019, Intel Corporation
+ * Copyright (c) 2015-2019, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -38,7 +38,7 @@
#include "compiler/expression_info.h"
#include "parser/Component.h"
#include "util/noncopyable.h"
-#include "util/ue2string.h"
+#include "util/ue2string.h"
#include <memory>
@@ -67,22 +67,22 @@ public:
std::unique_ptr<Component> component;
};
-
-/** \brief Class gathering together the pieces of a parsed lit-expression. */
-class ParsedLitExpression : noncopyable {
-public:
- ParsedLitExpression(unsigned index, const char *expression,
- size_t expLength, unsigned flags, ReportID report);
-
- void parseLiteral(const char *expression, size_t len, bool nocase);
-
- /** \brief Expression information (from flags, extparam etc) */
- ExpressionInfo expr;
-
- /** \brief Format the lit-expression text into Hyperscan literal type. */
- ue2_literal lit;
-};
-
+
+/** \brief Class gathering together the pieces of a parsed lit-expression. */
+class ParsedLitExpression : noncopyable {
+public:
+ ParsedLitExpression(unsigned index, const char *expression,
+ size_t expLength, unsigned flags, ReportID report);
+
+ void parseLiteral(const char *expression, size_t len, bool nocase);
+
+ /** \brief Expression information (from flags, extparam etc) */
+ ExpressionInfo expr;
+
+ /** \brief Format the lit-expression text into Hyperscan literal type. */
+ ue2_literal lit;
+};
+
/**
* \brief Class gathering together the pieces of an expression that has been
* built into an NFA graph.
@@ -116,10 +116,10 @@ struct BuiltExpression {
void addExpression(NG &ng, unsigned index, const char *expression,
unsigned flags, const hs_expr_ext *ext, ReportID report);
-void addLitExpression(NG &ng, unsigned index, const char *expression,
- unsigned flags, const hs_expr_ext *ext, ReportID id,
- size_t expLength);
-
+void addLitExpression(NG &ng, unsigned index, const char *expression,
+ unsigned flags, const hs_expr_ext *ext, ReportID id,
+ size_t expLength);
+
/**
* Build a Hyperscan database out of the expressions we've been given. A
* fatal error will result in an exception being thrown.
@@ -128,13 +128,13 @@ void addLitExpression(NG &ng, unsigned index, const char *expression,
* The global NG object.
* @param[out] length
* The number of bytes occupied by the compiled structure.
- * @param pureFlag
- * The flag indicating invocation from literal API or not.
+ * @param pureFlag
+ * The flag indicating invocation from literal API or not.
* @return
* The compiled structure. Should be deallocated with the
* hs_database_free() function.
*/
-struct hs_database *build(NG &ng, unsigned int *length, u8 pureFlag);
+struct hs_database *build(NG &ng, unsigned int *length, u8 pureFlag);
/**
* Constructs an NFA graph from the given expression tree.