PHP  
 PHP: Test and Code Coverage Analysis
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

LCOV - code coverage report
Current view: top level - ext/intl/breakiterator - codepointiterator_methods.cpp (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 0 10 0.0 %
Date: 2014-04-16 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :    +----------------------------------------------------------------------+
       3             :    | PHP Version 5                                                        |
       4             :    +----------------------------------------------------------------------+
       5             :    | This source file is subject to version 3.01 of the PHP license,      |
       6             :    | that is bundled with this package in the file LICENSE, and is        |
       7             :    | available through the world-wide-web at the following url:           |
       8             :    | http://www.php.net/license/3_01.txt                                  |
       9             :    | If you did not receive a copy of the PHP license and are unable to   |
      10             :    | obtain it through the world-wide-web, please send a note to          |
      11             :    | license@php.net so we can mail you a copy immediately.               |
      12             :    +----------------------------------------------------------------------+
      13             :    | Authors: Gustavo Lopes <cataphract@php.net>                          |
      14             :    +----------------------------------------------------------------------+
      15             :  */
      16             : 
      17             : #include "codepointiterator_internal.h"
      18             : 
      19             : extern "C" {
      20             : #define USE_BREAKITERATOR_POINTER 1
      21             : #include "breakiterator_class.h"
      22             : }
      23             : 
      24             : using PHP::CodePointBreakIterator;
      25             : 
      26           0 : static inline CodePointBreakIterator *fetch_cpbi(BreakIterator_object *bio) {
      27           0 :         return (CodePointBreakIterator*)bio->biter;
      28             : }
      29             : 
      30           0 : U_CFUNC PHP_FUNCTION(cpbi_get_last_code_point)
      31             : {
      32           0 :         BREAKITER_METHOD_INIT_VARS;
      33           0 :         object = getThis();
      34             : 
      35           0 :         if (zend_parse_parameters_none() == FAILURE) {
      36             :                 intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,
      37           0 :                         "cpbi_get_last_code_point: bad arguments", 0 TSRMLS_CC);
      38           0 :                 RETURN_FALSE;
      39             :         }
      40             : 
      41           0 :         BREAKITER_METHOD_FETCH_OBJECT;
      42             : 
      43           0 :         RETURN_LONG(fetch_cpbi(bio)->getLastCodePoint());
      44             : }

Generated by: LCOV version 1.10

Generated at Wed, 16 Apr 2014 12:47:48 +0000 (8 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.