#include <string>
#include <stack>
#include <memory>
#include "bpp_include/bpp.h"
Go to the source code of this file.
|
| void | print_syntax_error_or_warning (std::string source_file, int line, int column, const std::string &text, const std::string &msg, std::stack< std::string > include_chain, std::shared_ptr< bpp::bpp_program > program, bool is_warning=false) |
| | Print a syntax error or warning message to stderr.
|
| |
| std::string | utf8_substr (const std::string &str, int start, int length) |
| |
| int | utf8_length (const std::string &str) |
| |
| std::string | equal_width_padding (const std::string &str, char padding_char=' ') |
| |
◆ equal_width_padding()
| std::string equal_width_padding |
( |
const std::string & |
str, |
|
|
char |
padding_char = ' ' |
|
) |
| |
◆ print_syntax_error_or_warning()
| void print_syntax_error_or_warning |
( |
std::string |
source_file, |
|
|
int |
line, |
|
|
int |
column, |
|
|
const std::string & |
text, |
|
|
const std::string & |
msg, |
|
|
std::stack< std::string > |
include_chain, |
|
|
std::shared_ptr< bpp::bpp_program > |
program, |
|
|
bool |
is_warning |
|
) |
| |
Print a syntax error or warning message to stderr.
Copyright (C) 2025 rail5 Bash++: Bash with classes
- Parameters
-
| source_file | The source file which contains the error |
| line | The line number where the error occurred |
| column | The column number where the error occurred |
| text | The text of the token which caused the error |
| msg | The error message to display |
| include_chain | A stack of include files which led to the error |
| is_warning | Whether the message is a warning or an error |
Copyright (C) 2025 rail5 Bash++: Bash with classes
◆ utf8_length()
| int utf8_length |
( |
const std::string & |
str | ) |
|
◆ utf8_substr()
| std::string utf8_substr |
( |
const std::string & |
str, |
|
|
int |
start, |
|
|
int |
length |
|
) |
| |