Wikipedia:Lua/Modul/Text/Test

Vorlagenprogrammierung Diskussionen Lua Test Unterseiten
Modul Deutsch English

Modul: Dokumentation

Testfälle zu Textfunktionen.

failsafe: 2025-02-06

char

Aufruf Erwartet Ergebnis
»« »«
1=65 104 97 »Aha« »Aha«
1=98 108 97 |*=2 »blabla« »blabla«
1=0x23 bad codepoints: Unavailable # »bad codepoints: Unavailable #«

concatParams

Aufrufparameter Erwartet Ergebnis
»« »«
1=Alfa »Alfa« »Alfa«
1=Alfa
2=Bravo
»Alfa|Bravo« »Alfa|Bravo«
1=Alfa
2=Bravo
3=Charlie
»Alfa|Bravo|Charlie« »Alfa|Bravo|Charlie«
1=Alfa
2=Bravo
3=Charlie
separator=+++
»Alfa+++Bravo+++Charlie« »Alfa+++Bravo+++Charlie«
1=Alfa
2=Bravo
3=Charlie
separator=<br />
»Alfa
Bravo
Charlie«
»Alfa
Bravo
Charlie«
1=Alfa
2=Bravo
3=Charlie
separator=&#124;
format=%.3s
»Alf|Bra|Cha« »Alf|Bra|Cha«

containsCJK

Aufruf Erwartet Ergebnis
»abcd« »« »«
»« »«
»a日本d« »1« »1«

getPlain

Aufruf Erwartet Ergebnis
»abcd« »abcd« »abcd«
»« »«
»xx<!--yy-->zz« »xxzz« »xxzz«
»xx'''yy'''zz« »xxyyzz« »xxyyzz«
»x''y''z''L''« »xyzL« »xyz
»A<s>B</s>C« »ABC« »ABC«

isLatinRange

Aufruf Erwartet Ergebnis
»abcd« »1« »1«
»Ça ira« »1« »1«
»1« »1«
»α – Ω« »« »«
»a日本d« »« »«

isQuote

Aufruf Erwartet Ergebnis
»„« »1« »1«
»x« »« »«
»« »«

listToText

Aufruf Erwartet Ergebnis
»« »«
» Alfa « »Alfa« »Alfa«
» Alfa «
» Bravo «
»Alfa und Bravo« »Alfa und Bravo«
» Alfa «
» Bravo «
» Charlie «
»Alfa, Bravo und Charlie« »Alfa, Bravo und Charlie«

quote

Aufruf Erwartet Ergebnis
»abcd« »„abcd“« »„abcd“«
»“abcd”« »„“abcd”“« »„“abcd”“«
» abcd « »„abcd“« »„abcd“«
»„“« »„“«
fr »«abcd»« »« abcd »«
fr|2 »‹abcd›« »‹ abcd ›«

quoteUnquoted

Aufruf Erwartet Ergebnis
»abcd« »„abcd“« »„abcd“«
»“abcd”« »“abcd”« »“abcd”«
» abcd « »„abcd“« »„abcd“«
»« »«
fr »« abcd »« »« abcd »«
fr|2 »‹ abc d›« »‹ abcd ›«
de-DE »„abcd“« »„abcd“«
de-CH »«abcd»« »«abcd»«
de-BE »„abcd“« »„abcd“«
qqz »“abcd”« »“abcd”«

removeDiacritics

Aufruf Erwartet Ergebnis
»abcd« »abcd« »abcd«
»âbçdé« »abcde« »abcde«
»« »«
»a日本d« »a日本d« »a日本d«

sentenceTerminated

Aufruf Erwartet Ergebnis
»« »«
»abc« »« »«
»abc.« »1« »1«
»abc.]]« »1« »1«
»abc]].« »1« »1«
»abc.« »1« »1«
»„abc.“« »1« »1«
»<span lang="und">abc.</span>« »1« »1«
»<span lang="und">abc</span>« »« »«

tokenWords

Aufruf Erwartet Ergebnis
»« »«
A B + C »A B C« »A B + C«
A Bö & C »A Bö C« »A Bö C«
A B&nbsp; C »A B C« »A B C«
A %26 C »A C« »A C«
A %42 C »A B C« »A B C«
A_B_C »A B C« »A B C«

ucfirstAll

Aufruf
»an der 5chönen &lauen&nbsp;donau – X y z«
Erwartet
»An Der 5chönen &Lauen&nbsp;Donau – X Y Z«
Ergebnis
»An Der 5chönen &Lauen&nbsp;Donau – X Y Z«

uprightNonlatin

Aufruf Erwartet Ergebnis
»« »«
»abc« »abc« »abc«
»abc « »abc « »abc «
»Mutsṭafah« »Mutsṭafah« »Mutsṭafah«
»μm« »μm« »μm«
»1 α-Teilchen« »1 α-Teilchen« »1 α-Teilchen«
»Methode 3α« »Methode 3α« »Methode 3α«
»abЩyz« »ab<span dir='auto' style='font-style:normal'>Щ</span>yz« »ab<span dir="auto" style="font-style:normal">Щ</span>yz«
»ΣΨΩ« »<span dir='auto' style='font-style:normal'>ΣΨΩ</span>« »<span dir="auto" style="font-style:normal">ΣΨΩ</span>«
»abcΣΨΩxyz« »abc<span dir='auto' style='font-style:normal'>ΣΨΩ</span>xyz« »abc<span dir="auto" style="font-style:normal">ΣΨΩ</span>xyz«
»Войната 1915 година. Втора Македония« »<span dir='auto' style='font-style:normal'>Войната 1915 година. Втора Македония</span>« »<span dir="auto" style="font-style:normal">Войната 1915 година. Втора Македония</span>«
»a日本d« »a<span dir='auto' style='font-style:normal'>日本</span>d« »a<span dir="auto" style="font-style:normal">日本</span>d«

Anführungszeichen

lang Name 1 2
af Afrikaans „1“ ‚2’
ar Arabisch «1» ‹2›
be Belarussisch «1» „2“
bg Bulgarisch „1“ ‚2’
ca Katalanisch «1» ‹2›
cs Tschechisch „1“ ‚2’
da Dänisch „1“ ‚2’
de Deutsch „1“ ‚2’
de-CH Schweizer Hochdeutsch «1» ‹2›
dsb Niedersorbisch „1“ ‚2’
el Griechisch «1» “2”
en Englisch “1” ‘2’
en-GB Britisches Englisch ‘1’ “2”
en-US Amerikanisches Englisch “1” ‘2’
eo Esperanto „1“ «2»
es Spanisch «1» ‹2›
et Estnisch „1“ ‚2’
eu Baskisch «1» ‹2›
fi Finnisch ”1” ’2’
fr Französisch « 1 » ‹ 2 ›
fr-CH Schweizer Französisch «1» ‹2›
ga Irisch “1” ‘2’
grc Altgriechisch «1» “2”
he Hebräisch “1” «2»
hr Kroatisch „1“ ‚2’
hsb Obersorbisch „1“ ‚2’
hu Ungarisch „1“ ‚2’
hy Armenisch «1» „2“
id Indonesisch ”1” ’2’
is Isländisch „1“ ‚2’
it Italienisch “1” ‘2’
it-CH it-CH «1» ‹2›
ja Japanisch 「1」 『2』
ka Georgisch „1“ ‚2’
ko Koreanisch “1” ‘2’
lt Litauisch „1“ ‚2’
lv Lettisch „1“ ‚2’
nl Niederländisch “1” ‘2’
nn Norwegisch (Nynorsk) «1» ‹2›
no Norwegisch «1» ‹2›
pl Polnisch „1” «2»
pt Portugiesisch «1» “2”
pt-BR Brasilianisches Portugiesisch “1” «2»
rm Rätoromanisch «1» ‹2›
ro Rumänisch „1“ «2»
ru Russisch «1» „2“
sk Slowakisch „1“ ‚2’
sl Slowenisch „1“ ‚2’
sq Albanisch «1» ‹2›
sr Serbisch „1” ‚2’
sv Schwedisch ”1” ’2’
th Thailändisch “1” ‘2’
tr Türkisch “1” ‘2’
uk Ukrainisch «1» ‹2›
zh Chinesisch “1” ‘2’
zh-CN Chinesisch (China) “1” ‘2’
zh-TW Chinesisch (Taiwan) 「1」 『2』

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.