Pure Programmer
Blue Matrix


Cluster Map

Project: Alphabetic Only Filter

Write a filter program that only allows alphabetic characters to pass through. Any non-alphabetic characters should be removed from the output stream.

Output
$ g++ -std=c++17 AlphabeticOnlyFilter.cpp -o AlphabeticOnlyFilter -lfmt $ ./AlphabeticOnlyFilter < ../../data/text/GettysburgAddress.txt LincolnsGettysburgAddressgivenNovemberonthebattlefieldnearGettysburgPennsylvaniaUSAFourscoreandsevenyearsagoourfathersbroughtforthonthiscontinentanewnationconceivedinLibertyanddedicatedtothepropositionthatallmenarecreatedequalNowweareengagedinagreatcivilwartestingwhetherthatnationoranynationsoconceivedandsodedicatedcanlongendureWearemetonagreatbattlefieldofthatwarWehavecometodedicateaportionofthatfieldasafinalrestingplaceforthosewhoheregavetheirlivesthatthatnationmightliveItisaltogetherfittingandproperthatweshoulddothisButinalargersensewecannotdedicatewecannotconsecratewecannothallowthisgroundThebravemenlivinganddeadwhostruggledherehaveconsecrateditfaraboveourpoorpowertoaddordetractTheworldwilllittlenotenorlongrememberwhatwesayherebutitcanneverforgetwhattheydidhereItisforusthelivingrathertobededicatedheretotheunfinishedworkwhichtheywhofoughtherehavethusfarsonoblyadvancedItisratherforustobeherededicatedtothegreattaskremainingbeforeusthatfromthesehonoreddeadwetakeincreaseddevotiontothatcauseforwhichtheygavethelastfullmeasureofdevotionthatweherehighlyresolvethatthesedeadshallnothavediedinvainthatthisnationunderGodshallhaveanewbirthoffreedomandthatgovernmentofthepeoplebythepeopleforthepeopleshallnotperishfromtheearth$ g++ -std=c++17 AlphabeticOnlyFilter.cpp -o AlphabeticOnlyFilter -lfmt $ ./AlphabeticOnlyFilter < ../../data/text/UnicodeTest.utf8 FourscoreandsevenyearsagoourfathersbroughtforthonthiscontinentanewnationconceivedinLibertyanddedicatedtothepropositionthatallmenarecreatedequalVorvierPunktenundsiebenJahrenhabenunsereVäteraufdiesemKontinenteineneueNationhervorgebrachtdieinFreiheitempfangenwurdeundsichdemVorschlagverschriebenhatdassalleMenschengleichgeschaffensindΤέσσερασκορκαιπριναπόεπτάχρόνιαοιπατέρεςμαςέφερανσεαυτήτηνήπειροένανέοέθνοςπουσχεδιάστηκεστηνΕλευθερίακαιαφιερώθηκεστηνπρότασηότιόλοιοιάνθρωποιδημιουργούνταιίσοιUnicodeEmojiSmilingFacewithHeartsHotFaceColdFaceWoozyFacePartyingFaceUnicodeEmojiZanyFaceExplodingHeadFacewithMonocleFacewithSymbolsonMouthTRexUnicodeEmojiRollingontheFloorLaughingNauseatedFaceClownFaceFoxSharkUnicodeEmojiMoneyMouthFaceNerdFaceLionUnicornCrabUnicodeEmojiVulcanSaluteChipmunkSpiderHotPepperTornadoPrecomposedvsDecomposedÅAàaéeîiñnüuGraphemesthattaketwocodepointsCanadaChinaFranceGreeceIsraelJapanMexicoUKUS

Solution