dj_angles.caseconverter.boundaries ================================== .. py:module:: dj_angles.caseconverter.boundaries Module Contents --------------- .. py:class:: BoundaryHandler Detect and handle boundaries in a string. The BoundaryHandler is an interface for a CaseConverter instance. It provides methods for detecting a boundary in a string as well as how to handle the boundary. .. py:method:: is_boundary(pc, c) :abstractmethod: Determine if we're on a boundary. :param pc: Previous character :param cc: Current character :return: True if a boundary is found, else false. :rtype: boolean .. py:method:: handle(pc, cc, input_buffer, output_buffer) :abstractmethod: Handle a detected boundary. :param pc: Previous character :type pc: str :param cc: Current character :type cc: str :param input_buffer: The raw string wrapped in a buffer. :type input_buffer: StringBuffer :param output_buffer: The output buffer that stores the new string as it's constructed. :type output_buffer: StringBuffer .. py:class:: OnDelimeterUppercaseNext(delimiters, join_char='') Bases: :py:obj:`BoundaryHandler` Detect and handle boundaries in a string. The BoundaryHandler is an interface for a CaseConverter instance. It provides methods for detecting a boundary in a string as well as how to handle the boundary. .. py:method:: is_boundary(pc, c) Determine if we're on a boundary. :param pc: Previous character :param cc: Current character :return: True if a boundary is found, else false. :rtype: boolean .. py:method:: handle(pc, cc, input_buffer, output_buffer) Handle a detected boundary. :param pc: Previous character :type pc: str :param cc: Current character :type cc: str :param input_buffer: The raw string wrapped in a buffer. :type input_buffer: StringBuffer :param output_buffer: The output buffer that stores the new string as it's constructed. :type output_buffer: StringBuffer .. py:class:: OnDelimeterLowercaseNext(delimiters, join_char='') Bases: :py:obj:`BoundaryHandler` Detect and handle boundaries in a string. The BoundaryHandler is an interface for a CaseConverter instance. It provides methods for detecting a boundary in a string as well as how to handle the boundary. .. py:method:: is_boundary(pc, c) Determine if we're on a boundary. :param pc: Previous character :param cc: Current character :return: True if a boundary is found, else false. :rtype: boolean .. py:method:: handle(pc, cc, input_buffer, output_buffer) Handle a detected boundary. :param pc: Previous character :type pc: str :param cc: Current character :type cc: str :param input_buffer: The raw string wrapped in a buffer. :type input_buffer: StringBuffer :param output_buffer: The output buffer that stores the new string as it's constructed. :type output_buffer: StringBuffer .. py:class:: OnUpperPrecededByLowerAppendUpper(join_char='') Bases: :py:obj:`BoundaryHandler` Detect and handle boundaries in a string. The BoundaryHandler is an interface for a CaseConverter instance. It provides methods for detecting a boundary in a string as well as how to handle the boundary. .. py:method:: is_boundary(pc, c) Determine if we're on a boundary. :param pc: Previous character :param cc: Current character :return: True if a boundary is found, else false. :rtype: boolean .. py:method:: handle(pc, cc, input_buffer, output_buffer) Handle a detected boundary. :param pc: Previous character :type pc: str :param cc: Current character :type cc: str :param input_buffer: The raw string wrapped in a buffer. :type input_buffer: StringBuffer :param output_buffer: The output buffer that stores the new string as it's constructed. :type output_buffer: StringBuffer .. py:class:: OnUpperPrecededByLowerAppendLower(join_char='') Bases: :py:obj:`BoundaryHandler` Detect and handle boundaries in a string. The BoundaryHandler is an interface for a CaseConverter instance. It provides methods for detecting a boundary in a string as well as how to handle the boundary. .. py:method:: is_boundary(pc, c) Determine if we're on a boundary. :param pc: Previous character :param cc: Current character :return: True if a boundary is found, else false. :rtype: boolean .. py:method:: handle(pc, cc, input_buffer, output_buffer) Handle a detected boundary. :param pc: Previous character :type pc: str :param cc: Current character :type cc: str :param input_buffer: The raw string wrapped in a buffer. :type input_buffer: StringBuffer :param output_buffer: The output buffer that stores the new string as it's constructed. :type output_buffer: StringBuffer .. py:class:: OnUpperPrecededByUpperAppendJoin(join_char='') Bases: :py:obj:`BoundaryHandler` Detect and handle boundaries in a string. The BoundaryHandler is an interface for a CaseConverter instance. It provides methods for detecting a boundary in a string as well as how to handle the boundary. .. py:method:: is_boundary(pc, c) Determine if we're on a boundary. :param pc: Previous character :param cc: Current character :return: True if a boundary is found, else false. :rtype: boolean .. py:method:: handle(pc, cc, input_buffer, output_buffer) Handle a detected boundary. :param pc: Previous character :type pc: str :param cc: Current character :type cc: str :param input_buffer: The raw string wrapped in a buffer. :type input_buffer: StringBuffer :param output_buffer: The output buffer that stores the new string as it's constructed. :type output_buffer: StringBuffer .. py:class:: OnUpperPrecededByUpperAppendCurrent(join_char='') Bases: :py:obj:`BoundaryHandler` Detect and handle boundaries in a string. The BoundaryHandler is an interface for a CaseConverter instance. It provides methods for detecting a boundary in a string as well as how to handle the boundary. .. py:method:: is_boundary(pc, c) Determine if we're on a boundary. :param pc: Previous character :param cc: Current character :return: True if a boundary is found, else false. :rtype: boolean .. py:method:: handle(pc, cc, input_buffer, output_buffer) Handle a detected boundary. :param pc: Previous character :type pc: str :param cc: Current character :type cc: str :param input_buffer: The raw string wrapped in a buffer. :type input_buffer: StringBuffer :param output_buffer: The output buffer that stores the new string as it's constructed. :type output_buffer: StringBuffer