|
@@ -72,6 +72,9 @@ ZEND_BEGIN_ARG_INFO_EX(format_underline_arginfo, 0, 0, 1)
|
|
ZEND_ARG_INFO(0, style)
|
|
ZEND_ARG_INFO(0, style)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
+ZEND_BEGIN_ARG_INFO_EX(format_unlocked_arginfo, 0, 0, 0)
|
|
|
|
+ZEND_END_ARG_INFO()
|
|
|
|
+
|
|
ZEND_BEGIN_ARG_INFO_EX(format_align_arginfo, 0, 0, 1)
|
|
ZEND_BEGIN_ARG_INFO_EX(format_align_arginfo, 0, 0, 1)
|
|
ZEND_ARG_VARIADIC_INFO(0, style)
|
|
ZEND_ARG_VARIADIC_INFO(0, style)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_END_ARG_INFO()
|
|
@@ -179,6 +182,20 @@ PHP_METHOD(vtiful_format, underline)
|
|
}
|
|
}
|
|
/* }}} */
|
|
/* }}} */
|
|
|
|
|
|
|
|
+/** {{{ \Vtiful\Kernel\Format::unlocked()
|
|
|
|
+ */
|
|
|
|
+PHP_METHOD(vtiful_format, unlocked)
|
|
|
|
+{
|
|
|
|
+ ZVAL_COPY(return_value, getThis());
|
|
|
|
+
|
|
|
|
+ format_object *obj = Z_FORMAT_P(getThis());
|
|
|
|
+
|
|
|
|
+ if (obj->ptr.format) {
|
|
|
|
+ format_set_unlocked(obj->ptr.format);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+/* }}} */
|
|
|
|
+
|
|
/** {{{ \Vtiful\Kernel\Format::align()
|
|
/** {{{ \Vtiful\Kernel\Format::align()
|
|
*/
|
|
*/
|
|
PHP_METHOD(vtiful_format, align)
|
|
PHP_METHOD(vtiful_format, align)
|
|
@@ -385,6 +402,7 @@ zend_function_entry format_methods[] = {
|
|
PHP_ME(vtiful_format, fontSize, format_size_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, fontSize, format_size_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, strikeout, format_strikeout_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, strikeout, format_strikeout_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, underline, format_underline_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, underline, format_underline_arginfo, ZEND_ACC_PUBLIC)
|
|
|
|
+ PHP_ME(vtiful_format, unlocked, format_unlocked_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, toResource, format_to_resource_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, toResource, format_to_resource_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, background, format_background_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, background, format_background_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_FE_END
|
|
PHP_FE_END
|