Expander class is responsible for expanding libraries in the source code. [詳解]
公開メンバ関数 | |
bool | is_ignored_line (self, line) |
Checks if a line should be ignored during expansion. | |
__init__ (self, List[Path] lib_paths) | |
Initializes an Expander object. | |
Path | find_library (self, str library_name) |
Finds the path of a library file. | |
List[str] | expand_library (self, Path library_file_path) |
Expands a library file. | |
str | expand (self, str source) |
Expands libraries in the source code. | |
公開変数類 | |
lib_paths = lib_paths | |
静的公開変数類 | |
include = re.compile(r'#include\s*["<](kyopro_library/[a-z0-9_/]*(|.hpp))[">]\s*') | |
included = set() | |
Expander class is responsible for expanding libraries in the source code.
Attributes:
Methods:
exp.Expander.__init__ | ( | self, | |
List[Path] | lib_paths ) |
bool exp.Expander.is_ignored_line | ( | self, | |
line ) |
Path exp.Expander.find_library | ( | self, | |
str | library_name ) |
Finds the path of a library file.
Args:
Returns:
Raises:
参照先 exp.format, lib_paths.
List[str] exp.Expander.expand_library | ( | self, | |
Path | library_file_path ) |
Expands a library file.
Args:
Returns:
参照先 expand_library(), find_library(), exp.format, include, included, is_ignored_line().
str exp.Expander.expand | ( | self, | |
str | source ) |
Expands libraries in the source code.
Args:
Returns:
|
static |