(self, needle, char_size)
return bytelen // char_size
calculate the number of chars in needle
        char can be of multiple bytes here
calculate the number of chars in needle
        char can be of multiple bytes here
calculate the number of chars in needle char can be of multiple bytes here
def _calc_char_num(self, needle, char_size):
        """
        calculate the number of chars in needle
        char can be of multiple bytes here
        """
        if type(needle) is bytes:
            return len(needle)
        bytelen = len(needle) // self.state.arch.byte_width
        if bytelen % char_size != 0:
            bytelen += char_size - (bytelen % char_size)
        return bytelen // char_size
def _calc_char_num ( self , needle , char_size ) : if type ( needle ) is bytes : return len ( needle ) bytelen = len ( needle ) // self . state . arch . byte_width if bytelen % char_size != 0 : bytelen += char_size - ( bytelen % char_size ) return bytelen // char_size