FOSSredder 0.5.0
Loading...
Searching...
No Matches
ParserHeuristics.cpp File Reference

Implements lightweight text heuristics for statement parsing. More...

#include "core/application/import/internal/ParserHeuristics.h"
#include "../../../utils/StringUtils.h"
#include <array>
#include <vector>
Include dependency graph for ParserHeuristics.cpp:

Go to the source code of this file.

Namespaces

namespace  core
namespace  core::application
namespace  core::application::importing
namespace  core::application::importing::internal

Functions

bool core::application::importing::internal::isHeaderNoiseLine (const std::string &line)
 Detects whether a line looks like header noise.
static bool core::application::importing::internal::containsAny (const std::string &hayLower, std::initializer_list< const char * > needlesLower)
bool core::application::importing::internal::isFooterLine (const std::string &line)
 Detects whether a line marks a footer section.
bool core::application::importing::internal::isPostTransactionFootnote (const std::string &line)
 Detects whether a line belongs to the post-transaction footnote area.
bool core::application::importing::internal::isTransactionsSectionHeader (const std::string &line)
 Detects whether a line marks the start of the transactions section.
bool core::application::importing::internal::isDebitCreditHeaderLine (const std::string &line)
 Detects whether a line looks like a debit/credit table header.
std::string lowerAscii (std::string s)
 Converts ASCII letters in a string to lowercase.
std::string trim (std::string s)
 Removes leading and trailing ASCII whitespace from a string.

Detailed Description

Implements lightweight text heuristics for statement parsing.

Definition in file ParserHeuristics.cpp.

Function Documentation

◆ lowerAscii()

std::string core::utils::lowerAscii ( std::string s)

Converts ASCII letters in a string to lowercase.

Definition at line 28 of file StringUtils.cpp.

Here is the caller graph for this function:

◆ trim()

std::string core::utils::trim ( std::string s)

Removes leading and trailing ASCII whitespace from a string.

Definition at line 19 of file StringUtils.cpp.

Here is the caller graph for this function: