00:01
Hello students, here is the code that performs the required string operation to produce an aphoric version of an hawaiian word.
00:10
So you can see, first initially we are using a function isvalidcharacter.
00:18
So here isvalidcharacter, the isvalidcharacter of char c, of char c, it will, this function takes a character as an input and returns a boolean indicating.
00:39
So it returns in a form of booleans, booleans indicating, fine, booleans.
00:49
So here, if it is a valid character for a hawaiian word, so here you can see, there are the different, like we are initializing a differently for the vowels and the consonants.
01:03
So the vowels are a, e, i, o, u and the consonants are h, k, l, m, n, p, w and the inverted commas, all are in the form of the string characters.
01:14
So now we will return the lower, what the characters which is lower in the vowels as well as in the consonants.
01:23
You can see the character which is the lower and it is a consonants in a, you provided word, your input.
01:33
So you can see the next function, we will see for the single vowel, that is the current, we will select our current character plus the replacement, the word which we want to replace with it.
01:48
So here the single vowel, this function checks if the current vowel is over or not.
01:56
The single vowel, it will first, it has the two values as the vowel, a current character, current, current character and the replacement, and the replacement.
02:15
Fine? here you can see, your current, current character, this function, it, this function checks if it is a vowel or not, if it is a vowel or not.
02:30
Then it, if it is a vowel, then it returns and sets the replacement string.
02:36
Otherwise, it will turn to the false condition.
02:39
So here the vowels we can assign again as a, e, i, o, u for this separately.
02:45
So it will replace with the term if it is a vowel.
02:49
So we are providing here the if loop.
02:53
So here for the providing if the current, current character, your present character is lower in a fine, then return your true or return false.
03:06
So this is how the def of the function of single vowels act.
03:10
So now the function for, the function for vowel group, you can see here in a vowel group, we vowel, vowels group, vowel group, it is as the current character of current character, current character, the next character, the replacement character and the replacement, replacement.
03:46
So you can see here, this function checks if the current, if it checks if the current character and the next character are from the vowel group, it is from the vowel, it checks if it is from the vowel group.
04:02
If it do, then it returns a true and sets the replacement.
04:06
Otherwise it sets to false.
04:08
Same, similar to the single vowels, but here it checks for its oval groups...