summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-08-11 19:48:00 +0000
committerFelipe Pena <felipe@php.net>2008-08-11 19:48:00 +0000
commiteb1837d9de56547f76459397a930f2e812547448 (patch)
tree0c8be24ca5b3bd7fd3735fc30cb6529351c2ff2b /ext/intl/msgformat/msgformat.c
parent6d083e2c39aa15f9740d041ca007ae2f86d2f10f (diff)
downloadphp-git-eb1837d9de56547f76459397a930f2e812547448.tar.gz
MFH:
- Added arginfo - Fixed WS - Changed C++ comments to C comments
Diffstat (limited to 'ext/intl/msgformat/msgformat.c')
-rwxr-xr-xext/intl/msgformat/msgformat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/intl/msgformat/msgformat.c b/ext/intl/msgformat/msgformat.c
index ba8cef78a7..b31db9d6ff 100755
--- a/ext/intl/msgformat/msgformat.c
+++ b/ext/intl/msgformat/msgformat.c
@@ -38,7 +38,7 @@ static void msgfmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
intl_error_reset( NULL TSRMLS_CC );
object = return_value;
- // Parse parameters.
+ /* Parse parameters. */
if( zend_parse_parameters( ZEND_NUM_ARGS() TSRMLS_CC, "ss",
&locale, &locale_len, &pattern, &pattern_len ) == FAILURE )
{
@@ -51,7 +51,7 @@ static void msgfmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
INTL_CHECK_LOCALE_LEN_OBJ(locale_len, return_value);
MSG_FORMAT_METHOD_FETCH_OBJECT;
- // Convert pattern (if specified) to UTF-16.
+ /* Convert pattern (if specified) to UTF-16. */
if(pattern && pattern_len) {
intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
INTL_CTOR_CHECK_STATUS(mfo, "msgfmt_create: error converting pattern to UTF-16");
@@ -71,7 +71,7 @@ static void msgfmt_ctor(INTERNAL_FUNCTION_PARAMETERS)
(mfo)->mf_data.orig_format = estrndup(pattern, pattern_len);
(mfo)->mf_data.orig_format_len = pattern_len;
- // Create an ICU message formatter.
+ /* Create an ICU message formatter. */
MSG_FORMAT_OBJECT(mfo) = umsg_open(spattern, spattern_len, locale, NULL, &INTL_DATA_ERROR_CODE(mfo));
if(spattern) {
@@ -114,7 +114,7 @@ PHP_FUNCTION( msgfmt_get_error_code )
zval* object = NULL;
MessageFormatter_object* mfo = NULL;
- // Parse parameters.
+ /* Parse parameters. */
if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
&object, MessageFormatter_ce_ptr ) == FAILURE )
{
@@ -126,7 +126,7 @@ PHP_FUNCTION( msgfmt_get_error_code )
mfo = (MessageFormatter_object *) zend_object_store_get_object( object TSRMLS_CC );
- // Return formatter's last error code.
+ /* Return formatter's last error code. */
RETURN_LONG( INTL_DATA_ERROR_CODE(mfo) );
}
/* }}} */
@@ -142,7 +142,7 @@ PHP_FUNCTION( msgfmt_get_error_message )
zval* object = NULL;
MessageFormatter_object* mfo = NULL;
- // Parse parameters.
+ /* Parse parameters. */
if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
&object, MessageFormatter_ce_ptr ) == FAILURE )
{
@@ -154,7 +154,7 @@ PHP_FUNCTION( msgfmt_get_error_message )
mfo = (MessageFormatter_object *) zend_object_store_get_object( object TSRMLS_CC );
- // Return last error message.
+ /* Return last error message. */
message = intl_error_get_message( &mfo->mf_data.error TSRMLS_CC );
RETURN_STRING( message, 0);
}