All language subtitles for 12. toUpper Function in C - Implementation

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

All right, so in the previous video, what we talked about was a function called to lower and this

function received a character and checked out.

If this character is an Apricus letter and if that's the case, then basically what we had to do is

to calculate the lowercase representation of these given letter and to return it.

And we've done it using the Huskie to the ASCII table to find out these formula that was used and helped

us in this task.

In all simply happened here is once again we took the decimal representation of a given character and

we reduced the decimal representation of the lower the uppercase A..

OK, just to get some, I don't know, some distance between the first letter, which is a up to a given

letter which was unknown.

And this distance, like this example, it was sixty seven representation of a gap F of uppercase C

minus uppercase A. which was 67 minus sixty five, which was still.

And we simply added these two to the lowercase eight to simply take the lowercase A to the R, the lowercase

C representation and we return it using this return statement.

So I hope that was clear.

And now in this video we are going simply to do something which is pretty much the same just to utilize

and to implement the two upper two upper function in these two upper function is going to work on a

very similar principle.

It will be like this.

So char to opera.

And what this function is going to do is, again, to receive some letter.

And once you receive some letter and you have to decide and to make some check to check some condition,

if, OK, if letter is going to be a lowercase letter.

OK, then in this case we should return the uppercase.

Right.

That's the name of the function.

So if letter is greater than lowercase eight and also if the letter is less than or equal to lowercase

Z.

Right.

Lowercase Z, then in this case we should calculate and find out the uppercase representation of the

letter.

So in this case, we should return the letter.

Very similar principle to what we've done previously.

OK, we know that the letter is a lower case than we will use minus lowercase A..

OK, plus opera.

Casey.

OK, very, very similar.

So we reduced it almost to the zero.

Right.

To find like the the gap, the distance.

And we used the letter minus lowercase since we knew that in this case.

OK, if this condition is satisfied then the letter itself is a lower case.

And then what we should do is just to add this kind of number to the capital, letter A. to its decimal

representation, to get the actual uppercase character that we wanted.

So I hope that's clear.

OK, and basically this is the other return ale's return, return, return minus one.

Who so I hope this is clear to you guys and also another important note is the reason why we used here

letter is greater than a and we use these nice things before it is, because if you would use it like

this, if letter is greater than a, then what our compiler would have thought is that A is a variable

and it would try to search for this variable value.

And that's not something that we want.

We want are we want the letter to be compared with the character AI itself.

So thank you guys for watching.

This exercise was not the easiest one and yeah, and in the next videos, I think I will do also one

or two videos regarding the ASCII tables, just to like to sharpen your knowledge to make you even more

experienced in one of them.

Yeah, this is Alphatech and my name is.

I'll see you in the next videos.

Take care of yourself.

Study more.

Enjoy life.

Do your daily exercises.

And thank you, guys.

I'll see you then.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.