#how to incorporate bool into string

11 messages · Page 1 of 1 (latest)

teal swan
#

I know how to create my functions isPunctuation and isWhitespace (well I think I set this one up correctly) but I'm stuck on how to add them to my pigLatinString. If a word ends with a punctuation mark, in the pig Latin form, I need to put the punctuation at the end of the string.  Any advice would be appreciated.

wide schoonerBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

spark rapids
#

@teal swan can you send an example

teal swan
spark rapids
#

How about splitting your string by whitespace characters so you have a vector of words

#

then converting each word to pig latin is easy, and the punctuation is easy too

#

Or does pigLatinString already work on a single word at a time

#

If it does, there are a few ways to ignore the punctuation at the end of a word

teal swan
#

I will have to do a string of words as well but for this part its just a single word

wide schoonerBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.