Back to GNU Libidn Homepage

GNU Libidn Cyclomatic Complexity Report

Report generated at: Tue Oct 28 19:06:57 CET 2008

Resume

Total number of functions 72
Number of low risk functions 61
Number of moderate risk functions 6
Number of high risk functions 5
Number of untestable functions 0

Details for all functions

Used ranges:

  Cyclomatic Complexity Risk Evaluation
  0 - 10 Simple module, without much risk
  11 - 20 More complex module, moderate risk
  21 - 50 Complex module, high risk
  greater than 50 Untestable module, very high risk

Function Name Cyclomatic
Complexity
Number of
Statements
Number of
Lines
Source File
idna_to_ascii_4i 37 92 191 lib/idna.c
stringprep_4i 37 76 137 lib/stringprep.c
_g_utf8_normalize_wc 30 77 135 lib/nfkc.c
punycode_encode 22 57 111 lib/punycode.c
punycode_decode 21 59 101 lib/punycode.c
idna_to_ascii_4z 15 45 82 lib/idna.c
g_utf8_to_ucs4_fast 14 50 88 lib/nfkc.c
tld_get_4 13 24 36 lib/tld.c
idna_to_unicode_internal 12 47 116 lib/idna.c
combine 12 21 54 lib/nfkc.c
_tld_checkchar 11 15 28 lib/tld.c
  g_ucs4_to_utf8 10 29 50 lib/nfkc.c
  stringprep_profile 10 25 39 lib/stringprep.c
  find_decomposition 10 21 41 lib/nfkc.c
  combine_hangul 10 11 23 lib/nfkc.c
  g_utf8_strlen 9 16 37 lib/nfkc.c
  g_unichar_to_utf8 8 28 50 lib/nfkc.c
  idna_to_unicode_4z4z 7 38 61 lib/idna.c
  stringprep 7 31 54 lib/stringprep.c
  g_unicode_canonical_ordering 7 24 36 lib/nfkc.c
  decompose_hangul 7 16 34 lib/nfkc.c
  pr29_4 7 15 27 lib/pr29.c
  stringprep_find_character_in_table 6 8 21 lib/stringprep.c
  tld_get_table 5 9 14 lib/tld.c
  stringprep_locale_charset 5 7 17 lib/toutf8.c
  stringprep_apply_table_to_string 5 13 27 lib/stringprep.c
  tld_check_4t 5 13 24 lib/tld.c
  tld_default_table 4 8 16 lib/tld.c
  decode_digit 4 4 6 lib/punycode.c
  tld_check_4 4 13 28 lib/tld.c
  idna_to_unicode_44i 4 12 24 lib/idna.c
  stringprep_find_string_in_table 4 10 19 lib/stringprep.c
  first_column 4 10 12 lib/pr29.c
  adapt 3 9 16 lib/punycode.c
  stringprep_4zi_1 3 8 18 lib/stringprep.c
  combinationclass 3 7 11 lib/pr29.c
  in_last_column_row 3 7 11 lib/pr29.c
  tld_check_4z 3 6 14 lib/tld.c
  stringprep_4zi 3 6 12 lib/stringprep.c
  tld_check_4tz 3 6 13 lib/tld.c
  tld_get_4z 3 6 13 lib/tld.c
  stringprep_check_version 3 3 8 lib/version.c
  tld_get_z 3 14 22 lib/tld.c
  tld_check_8z 3 11 21 lib/tld.c
  tld_check_lz 3 10 20 lib/tld.c
  tld_strerror 7 17 40 lib/strerror-tld.c
  punycode_strerror 5 13 32 lib/strerror-punycode.c
  pr29_strerror 4 11 28 lib/strerror-pr29.c
  idna_to_unicode_8z4z 2 9 16 lib/idna.c
  idna_to_ascii_8z 2 9 18 lib/idna.c
  idna_to_unicode_lzlz 2 8 15 lib/idna.c
  idna_to_unicode_8zlz 2 8 15 lib/idna.c
  idna_to_unicode_8z8z 2 8 15 lib/idna.c
  idna_to_ascii_lz 2 8 16 lib/idna.c
  g_utf8_get_char 2 8 14 lib/nfkc.c
  pr29_8z 2 8 16 lib/pr29.c
  stringprep_convert 2 7 16 lib/toutf8.c
  pr29_4z 2 6 10 lib/pr29.c
  encode_basic 2 2 6 lib/punycode.c
  stringprep_strerror 13 29 64 lib/strerror-stringprep.c
  idna_strerror 13 29 64 lib/strerror-idna.c
  stringprep_ucs4_nfkc_normalize 1 6 12 lib/nfkc.c
  g_utf8_normalize 1 5 11 lib/nfkc.c
  stringprep_utf8_to_ucs4 1 1 5 lib/nfkc.c
  encode_digit 1 1 7 lib/punycode.c
  stringprep_unichar_to_utf8 1 1 5 lib/nfkc.c
  stringprep_utf8_to_unichar 1 1 5 lib/nfkc.c
  idn_free 1 1 5 lib/idn-free.c
  stringprep_utf8_to_locale 1 1 5 lib/toutf8.c
  stringprep_locale_to_utf8 1 1 5 lib/toutf8.c
  stringprep_utf8_nfkc_normalize 1 1 5 lib/nfkc.c

Copyright (c) 2007, 2008 Free Software Foundation Inc.