Converte símbolos Unicode decorativos dos comentários para ASCII
Substitui barras de caixa (─ ═ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴), travessões (—), setas (→ ←), reticências (…), bullets (•), multiplicação (×) e guillemets (› ‹) por equivalentes ASCII. Acentos portugueses são preservados.
This commit is contained in:
1 parent
1cc0ff9d02
commit
90d47bf8a0
36 files changed
+327
-327
No files matched your search
+3
-3
@@ -5,7 +5,7 @@
|
||||
#include <string.h>
|
||||
#include "tinyblocks/tinyblocks.h"
|
||||
|
||||
/* ── Vtable ──────────────────────────────────────────────────────────────── */
|
||||
/* -- Vtable --- */
|
||||
static void text_eval(TinyBlocks_Block* self, TinyBlocks* rt)
|
||||
{
|
||||
(void)rt;
|
||||
@@ -43,7 +43,7 @@ static const TinyBlocks_BlockVTable s_text_vtable = {
|
||||
.clone = text_clone,
|
||||
};
|
||||
|
||||
/* ── Ciclo de vida ───────────────────────────────────────────────────────── */
|
||||
/* -- Ciclo de vida --- */
|
||||
TinyBlocks_TextBlock* tb_text_block_create(TinyBlocks* rt, const char* value)
|
||||
{
|
||||
TinyBlocks_TextBlock* tb = (TinyBlocks_TextBlock*)tb_block_alloc_base(
|
||||
@@ -59,7 +59,7 @@ void tb_text_block_destroy(TinyBlocks_TextBlock* tb, TinyBlocks* rt)
|
||||
tb_block_destroy(&tb->base, rt);
|
||||
}
|
||||
|
||||
/* ── Acesso ──────────────────────────────────────────────────────────────── */
|
||||
/* -- Acesso --- */
|
||||
const char* tb_text_block_get(const TinyBlocks_TextBlock* tb)
|
||||
{
|
||||
return tb ? tb->value : NULL;
|
||||
|
||||
Reference in new issue
Block a user