code: def blockname(ch):
      """Return the Unicode block name for ch, or None if ch has no block.
  
      >>> blockname(u'a')
      'Basic Latin'
      >>> blockname(unichr(0x0b80))
      'Tamil'
      >>> block(unichr(2048))
      None
      """
  
      assert isinstance(ch, text_type) and len(ch) == 1, repr(ch)
      cp = ord(ch)
      i = bisect_right(_starts, cp) - 1
      end = _ends[i]
      if cp > end:
          return None
      return _names[i]
  
file_path: whoosh/src/whoosh/support/unicode.py
imports: import re
  from bisect import bisect_right
  from whoosh.compat import text_type, u
label_desc: Use image node_id 2 for calling a global function with example usage: blockname(ch) and returns: _names, None