Skip to content

Commit 63e82c1

Browse files
committed
Feat: column index from string and string from column index
1 parent 759ca97 commit 63e82c1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

kernel/excel.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ ZEND_BEGIN_ARG_INFO_EX(xls_next_cell_callback_arginfo, 0, 0, 2)
171171
ZEND_ARG_INFO(0, fci)
172172
ZEND_ARG_INFO(0, sheet_name)
173173
ZEND_END_ARG_INFO()
174+
175+
ZEND_BEGIN_ARG_INFO_EX(xls_index_to_string, 0, 0, 1)
176+
ZEND_ARG_INFO(0, index)
177+
ZEND_END_ARG_INFO()
178+
179+
ZEND_BEGIN_ARG_INFO_EX(xls_string_to_index, 0, 0, 1)
180+
ZEND_ARG_INFO(0, index)
181+
ZEND_END_ARG_INFO()
174182
/* }}} */
175183

176184
/** {{{ \Vtiful\Kernel\xls::__construct(array $config)
@@ -927,8 +935,8 @@ zend_function_entry xls_methods[] = {
927935
PHP_ME(vtiful_xls, setColumn, xls_set_column_arginfo, ZEND_ACC_PUBLIC)
928936
PHP_ME(vtiful_xls, setRow, xls_set_row_arginfo, ZEND_ACC_PUBLIC)
929937

930-
PHP_ME(vtiful_xls, columnIndexFromString, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
931-
PHP_ME(vtiful_xls, stringFromColumnIndex, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
938+
PHP_ME(vtiful_xls, columnIndexFromString, xls_index_to_string, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
939+
PHP_ME(vtiful_xls, stringFromColumnIndex, xls_string_to_index, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
932940

933941
#ifdef ENABLE_READER
934942
PHP_ME(vtiful_xls, openFile, xls_open_file_arginfo, ZEND_ACC_PUBLIC)

0 commit comments

Comments
 (0)