LCOV - code coverage report
Current view: top level - intl/icu/source/common - icudataver.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 9 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // © 2016 and later: Unicode, Inc. and others.
       2             : // License & terms of use: http://www.unicode.org/copyright.html
       3             : /*
       4             : ******************************************************************************
       5             : *
       6             : *   Copyright (C) 2009-2011, International Business Machines
       7             : *   Corporation and others.  All Rights Reserved.
       8             : *
       9             : ******************************************************************************
      10             : */
      11             : 
      12             : #include "unicode/utypes.h"
      13             : #include "unicode/icudataver.h"
      14             : #include "unicode/ures.h"
      15             : #include "uresimp.h" /* for ures_getVersionByKey */
      16             : 
      17           0 : U_CAPI void U_EXPORT2 u_getDataVersion(UVersionInfo dataVersionFillin, UErrorCode *status) {
      18           0 :     UResourceBundle *icudatares = NULL;
      19             :     
      20           0 :     if (U_FAILURE(*status)) {
      21           0 :         return;
      22             :     }
      23             :     
      24           0 :     if (dataVersionFillin != NULL) {
      25           0 :         icudatares = ures_openDirect(NULL, U_ICU_VERSION_BUNDLE , status);
      26           0 :         if (U_SUCCESS(*status)) {
      27           0 :             ures_getVersionByKey(icudatares, U_ICU_DATA_KEY, dataVersionFillin, status);
      28             :         }
      29           0 :         ures_close(icudatares);
      30             :     }
      31             : }

Generated by: LCOV version 1.13