Braille Glove
 
Loading...
Searching...
No Matches
BrailleMapper Class Reference

Maps characters to their corresponding Braille integer representations. More...

#include <BrailleMapper.h>

Public Member Functions

 BrailleMapper ()
 Constructs a BrailleMapper object and initializes mappings.
 
int getBrailleHash (char letter) const
 Retrieves the Braille integer representation of a given letter.
 
std::vector< int > stringToIntegerList (const String &input) const
 Converts a string into a list of Braille integer representations.
 

Detailed Description

Maps characters to their corresponding Braille integer representations.

This class provides functionality to convert individual characters and strings into Braille numerical representations based on English Tier One Braille.

Member Function Documentation

◆ getBrailleHash()

int BrailleMapper::getBrailleHash ( char letter) const

Retrieves the Braille integer representation of a given letter.

Parameters
letterThe character to be mapped.
Returns
The corresponding Braille integer representation.

◆ stringToIntegerList()

std::vector< int > BrailleMapper::stringToIntegerList ( const String & input) const

Converts a string into a list of Braille integer representations.

Given an input string (e.g., "hello"), this function returns a vector containing the corresponding Braille integer values for each character.

Parameters
inputThe input string to convert.
Returns
A vector of integers representing the Braille values of the characters.

The documentation for this class was generated from the following files: