def get_items_by_name(self, name, case_sensitive = True):
if not case_sensitive and name:<EOL><INDENT>name = name.lower()<EOL><DEDENT>result = []<EOL>for item in self._items:<EOL><INDENT>if item.name == name:<EOL><INDENT>result.append(item)<EOL><DEDENT>elif item.name is None:<EOL><INDENT>continue<EOL><DEDENT>elif not case_sensitive and item.name.lower() == name:<EOL><INDENT>result.append(item)<EOL><DEDENT><DEDENT>return result<EOL>
Return a list of items with given name.

:Parameters:
    - `name`: name to look-up
    - `case_sensitive`: if `False` the matching will be case
      insensitive.
:Types:
    - `name`: `unicode`
    - `case_sensitive`: `bool`

:Returntype: `list` of `RosterItem`