33 static constexpr const int ZERO_INITIAL_COUNTER = 0;
34 static constexpr const int ROOT_NODE = 0;
35 static constexpr const int BASE_DEPTH = 0;
36 static constexpr const char* EMPTY_FOLDER =
"";
37 static constexpr const char* BASIC_SHIFT_PER_DEPTH =
"----";
38 static constexpr const char* END_ARROW =
"--> ";
39 static constexpr const char* TWO_POINTER_AFTER_FOLDER =
"/: ";
40 static constexpr const char* LINE_TEXT =
" duplicated lines detected.";
42 std::vector<std::map<std::string, int>> trie;
43 std::vector<int> counter_duplication_lines;
44 int number_printed_lines = 0;
56 int create_node_at_the_end();
63 void create_edge_if_not_exist(
int node,
const std::string& folder);
70 static std::string create_context_string_on_depth(
int depth);
78 void print_node_information(
int node,
int depth,
const std::string& folder);
86 void dfs_print_duplication_code_trie(
int current_node,
int depth,
const std::string& folder);