本文整理汇总了C++中PY_STR函数的典型用法代码示例。如果您正苦于以下问题:C++ PY_STR函数的具体用法?C++ PY_STR怎么用?C++ PY_STR使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PY_STR函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: rndr_autolink
static int
rndr_autolink(struct buf *ob, const struct buf *link, enum mkd_autolink type, void *opaque)
{
PyObject *is_email = Py_False;
if (type == MKDA_EMAIL) {
is_email = Py_True;
}
PROCESS_SPAN("autolink", PY_STR(link), is_email, NULL);
}
示例2: rndr_list
static void
rndr_list(struct buf *ob, const struct buf *text, int flags, void *opaque)
{
PyObject *is_ordered = Py_False;
if (flags & MKD_LIST_ORDERED) {
is_ordered = Py_True;
}
PROCESS_BLOCK("list", PY_STR(text), is_ordered, NULL);
}
示例3: rndr_autolink
static int
rndr_autolink(hoedown_buffer *ob, const hoedown_buffer *link, hoedown_autolink_type type, const hoedown_renderer_data *data)
{
PyObject *is_email = Py_False;
if (type == HOEDOWN_AUTOLINK_EMAIL) {
is_email = Py_True;
}
PROCESS_SPAN("autolink", PY_STR(link), is_email, NULL);
}
示例4: rndr_list
static void
rndr_list(hoedown_buffer *ob, const hoedown_buffer *text, hoedown_list_flags flags, const hoedown_renderer_data *data)
{
PyObject *is_ordered = Py_False;
if (flags & HOEDOWN_LIST_ORDERED) {
is_ordered = Py_True;
}
PROCESS_BLOCK("list", PY_STR(text), is_ordered, NULL);
}
示例5: rndr_image
static int
rndr_image(struct buf *ob, const struct buf *link, const struct buf *title, const struct buf *alt, void *opaque)
{
PROCESS_SPAN("image", PY_STR(link), PY_STR(title), PY_STR(alt), NULL);
}
示例6: rndr_entity
static void
rndr_entity(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
PROCESS_BLOCK("entity", PY_STR(text), NULL);
}
示例7: rndr_header
static void
rndr_header(struct buf *ob, const struct buf *text, int level, void *opaque)
{
PROCESS_BLOCK("header", PY_STR(text), PY_INT(level), NULL);
}
示例8: rndr_blockquote
static void
rndr_blockquote(struct buf *ob, const struct buf *text, void *opaque)
{
PROCESS_BLOCK("block_quote", PY_STR(text), NULL);
}
示例9: rndr_normal_text
static void
rndr_normal_text(struct buf *ob, const struct buf *text, void *opaque)
{
PROCESS_BLOCK("normal_text", PY_STR(text), NULL);
}
示例10: rndr_subscript
static int
rndr_subscript(struct buf *ob, const struct buf *text, void *opaque)
{
PROCESS_SPAN("subscript", PY_STR(text), NULL);
}
示例11: rndr_triple_emphasis
static int
rndr_triple_emphasis(struct buf *ob, const struct buf *text, void *opaque)
{
PROCESS_SPAN("triple_emphasis", PY_STR(text), NULL);
}
示例12: rndr_ins
static int
rndr_ins(struct buf *ob, const struct buf *text, void *opaque)
{
PROCESS_SPAN("ins", PY_STR(text), NULL);
}
示例13: rndr_blockmath
static void
rndr_blockmath(struct buf *ob, const struct buf *math, void *opaque)
{
PROCESS_BLOCK("block_math", PY_STR(math), NULL);
}
示例14: rndr_header
static void
rndr_header(hoedown_buffer *ob, const hoedown_buffer *text, int level, const hoedown_renderer_data *data)
{
PROCESS_BLOCK("header", PY_STR(text), PY_INT(level), NULL);
}
示例15: rndr_raw_block
static void
rndr_raw_block(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_renderer_data *data)
{
PROCESS_BLOCK("block_html", PY_STR(text), NULL);
}