LOL, yeah. Its almost ironic, because I don't curse on a regular basis (and when I do its just as a joke, it doesn't mean anything unless I'm angry), just sometimes and I never really did it in school either. Its clear alot of people did it/do it to stand out "look at me, I'm cursing and I don't care!". Its just as much about attention then it is a bad habit for schoolers. Cursing gets attention, and people knew/know it. Its the next best attention grabber to being the class clown or the "rebel".
All three are just attempts at winning acclaim from your peers and classmates, and each is unnecessary. Its just as much the student's fault for fostering an anti-learning environment than it is anything the teacher does (or does not do), especially when the students are underminding or downright provoking the teacher, especially to the point where they can't teach effectively. You can't learn properly at all times when other students are distracting you with their nonsense, and swearing in school being allowed is a step in the wrong direction, I think, no matter what country it is. It completely debases and devalues the aspect of an ideal learning environment.
Class and learning can be fun and entertaining without cursing, and other unnecessary distractions. Theres no value to street talk being allowed in the classroom or campus. Its not something to cherish, preserve, protect, or condone in any way (even in everyday life).
The education system does not exist to be used as a spectical or forum from which these fools can play their antics. If they want to be morons, let them do it on their own time. Other people are trying to learn, and other people are trying to teach. They have no right to meddle in that, and action should be taken against them everytime. We're at the point where its so bad that simply warning them isn't enough. More agressive action is needed, and if that means these fools get no education, then its not ironic or a coincidence why they're failures and dropouts in life.
The day you decide to be a clown and a fool over being a learner and student is the day you screwed yourself, so live with it, and the difficulties of getting back on the right track.