This method takes a string, padding, space, and boolean as parameters. It splits the string on spaces into an array of words. It then checks if each word fits in the available space, adding line breaks and padding as needed. If the whole string fits in the space, it right pads it with spaces and returns it. Otherwise, it recursively breaks the string into multiple lines fitting the parameters.
This method takes a string, padding, space, and boolean as parameters. It splits the string on spaces into an array of words. It then checks if each word fits in the available space, adding line breaks and padding as needed. If the whole string fits in the space, it right pads it with spaces and returns it. Otherwise, it recursively breaks the string into multiple lines fitting the parameters.
This method takes a string, padding, space, and boolean as parameters. It splits the string on spaces into an array of words. It then checks if each word fits in the available space, adding line breaks and padding as needed. If the whole string fits in the space, it right pads it with spaces and returns it. Otherwise, it recursively breaks the string into multiple lines fitting the parameters.
This method takes a string, padding, space, and boolean as parameters. It splits the string on spaces into an array of words. It then checks if each word fits in the available space, adding line breaks and padding as needed. If the whole string fits in the space, it right pads it with spaces and returns it. Otherwise, it recursively breaks the string into multiple lines fitting the parameters.