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/spoofchecker - spoofchecker.c (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 9 11 81.8 %
Date: 2014-10-16 Functions: 1 1 100.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: Scott MacVicar <scottmac@php.net>                           |
      14             :    +----------------------------------------------------------------------+
      15             :  */
      16             : 
      17             : #ifdef HAVE_CONFIG_H
      18             : #include "config.h"
      19             : #endif
      20             : 
      21             : #include "spoofchecker_class.h"
      22             : #include "spoofchecker.h"
      23             : 
      24             : #include <unicode/uspoof.h>
      25             : 
      26             : 
      27             : /* {{{ spoofchecker_register_constants
      28             :  * Register constants
      29             :  */
      30       20225 : void spoofchecker_register_constants(INIT_FUNC_ARGS)
      31             : {
      32       20225 :         if (!Spoofchecker_ce_ptr)
      33             :         {
      34           0 :                 zend_error(E_ERROR, "Spoofchecker class not defined");
      35           0 :                 return;
      36             :         }
      37             : 
      38             :         #define SPOOFCHECKER_EXPOSE_CLASS_CONST(x) zend_declare_class_constant_long(Spoofchecker_ce_ptr, ZEND_STRS( #x ) - 1, USPOOF_##x TSRMLS_CC);
      39             : 
      40       20225 :         SPOOFCHECKER_EXPOSE_CLASS_CONST(SINGLE_SCRIPT_CONFUSABLE)
      41       20225 :         SPOOFCHECKER_EXPOSE_CLASS_CONST(MIXED_SCRIPT_CONFUSABLE)
      42       20225 :         SPOOFCHECKER_EXPOSE_CLASS_CONST(WHOLE_SCRIPT_CONFUSABLE)
      43       20225 :         SPOOFCHECKER_EXPOSE_CLASS_CONST(ANY_CASE)
      44       20225 :         SPOOFCHECKER_EXPOSE_CLASS_CONST(SINGLE_SCRIPT)
      45       20225 :         SPOOFCHECKER_EXPOSE_CLASS_CONST(INVISIBLE)
      46       20225 :         SPOOFCHECKER_EXPOSE_CLASS_CONST(CHAR_LIMIT)
      47             : 
      48             : 
      49             :         #undef SPOOFCHECKER_EXPOSE_CLASS_CONST
      50             : }
      51             : /* }}} */
      52             : 
      53             : /*
      54             :  * Local variables:
      55             :  * tab-width: 4
      56             :  * c-basic-offset: 4
      57             :  * End:
      58             :  * vim600: noet sw=4 ts=4 fdm=marker
      59             :  * vim<600: noet sw=4 ts=4
      60             :  */

Generated by: LCOV version 1.10

Generated at Thu, 16 Oct 2014 05:27:03 +0000 (6 days ago)

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