📝 fix typo
This commit is contained in:
parent
065f6ae162
commit
a7a2a0a369
|
@ -105,7 +105,7 @@ std::ostream& logo(std::ostream& out) {
|
|||
<< " - http://fgprc.org\n"
|
||||
<< " - http://fgprc.org.cn\n"
|
||||
<< "\n"
|
||||
<< "input <nasal-format -h> to get help.\n\n";
|
||||
<< "input <nasal -h> to get help.\n\n";
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace nasal {
|
||||
|
||||
var builtin_regex_match(context* ctx, gc* ngc) {
|
||||
var builtin_regex_match(context* ctx, gc* ngc) noexcept {
|
||||
auto source = ctx->localr[1];
|
||||
auto reg_str = ctx->localr[2];
|
||||
if (!source.is_str()) {
|
||||
|
@ -20,7 +20,7 @@ var builtin_regex_match(context* ctx, gc* ngc) {
|
|||
return zero;
|
||||
}
|
||||
|
||||
var builtin_regex_search(context* ctx, gc* ngc) {
|
||||
var builtin_regex_search(context* ctx, gc* ngc) noexcept {
|
||||
auto source = ctx->localr[1];
|
||||
auto reg_str = ctx->localr[2];
|
||||
if (!source.is_str()) {
|
||||
|
@ -38,7 +38,7 @@ var builtin_regex_search(context* ctx, gc* ngc) {
|
|||
return nil;
|
||||
}
|
||||
|
||||
var builtin_regex_replace(context* ctx, gc* ngc) {
|
||||
var builtin_regex_replace(context* ctx, gc* ngc) noexcept {
|
||||
auto source = ctx->localr[1];
|
||||
auto reg_str = ctx->localr[2];
|
||||
auto fmt = ctx->localr[3];
|
||||
|
@ -64,7 +64,7 @@ var builtin_regex_replace(context* ctx, gc* ngc) {
|
|||
return ngc->newstr(source.str());
|
||||
}
|
||||
|
||||
var builtin_regex_match_all(context* ctx, gc* ngc) {
|
||||
var builtin_regex_match_all(context* ctx, gc* ngc) noexcept {
|
||||
auto source = ctx->localr[1];
|
||||
auto reg_str = ctx->localr[2];
|
||||
if (!source.is_str()) {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
namespace nasal {
|
||||
|
||||
var builtin_regex_match(context*, gc*);
|
||||
var builtin_regex_search(context*, gc*);
|
||||
var builtin_regex_replace(context*, gc*);
|
||||
var builtin_regex_match_all(context*, gc*);
|
||||
var builtin_regex_match(context*, gc*) noexcept;
|
||||
var builtin_regex_search(context*, gc*) noexcept;
|
||||
var builtin_regex_replace(context*, gc*) noexcept;
|
||||
var builtin_regex_match_all(context*, gc*) noexcept;
|
||||
|
||||
extern nasal_builtin_table regex_lib_native[];
|
||||
|
||||
|
|
Loading…
Reference in New Issue