parameters: (ucs, table)
return_statement: return 0
docstring: Auxiliary function for binary search in interval table.
  
      :arg int ucs: Ordinal value of unicode character.
      :arg list table: List of starting and ending ranges of ordinal values,
          in form of ``[(start, end), ...]``.
      :rtype: int
      :returns: 1 if ordinal value ucs is found within lookup table, else 0.
docstring_summary: Auxiliary function for binary search in interval table.
docstring_tokens: Auxiliary function for binary search in interval table .
function: def _bisearch(ucs, table):
      """
      Auxiliary function for binary search in interval table.
  
      :arg int ucs: Ordinal value of unicode character.
      :arg list table: List of starting and ending ranges of ordinal values,
          in form of ``[(start, end), ...]``.
      :rtype: int
      :returns: 1 if ordinal value ucs is found within lookup table, else 0.
      """
      lbound = 0
      ubound = len(table) - 1
  
      if ucs < table[0][0] or ucs > table[ubound][1]:
          return 0
      while ubound >= lbound:
          mid = (lbound + ubound) // 2
          if ucs > table[mid][1]:
              lbound = mid + 1
          elif ucs < table[mid][0]:
              ubound = mid - 1
          else:
              return 1
  
      return 0
function_tokens: def _bisearch ( ucs , table ) : lbound = 0 ubound = len ( table ) - 1 if ucs < table [ 0 ] [ 0 ] or ucs > table [ ubound ] [ 1 ] : return 0 while ubound >= lbound : mid = ( lbound + ubound ) // 2 if ucs > table [ mid ] [ 1 ] : lbound = mid + 1 elif ucs < table [ mid ] [ 0 ] : ubound = mid - 1 else : return 1 return 0