Jump to content

User:Davidgothberg/Test55

From Wikipedia, the free encyclopedia

Archive /


Testing to return trailing space

[edit]
+{{User:Davidgothberg/Test55}}+

+{{#titleparts: {{User:Davidgothberg/Test55}}/ | 1 }}+

+Archive /+

+Archive +


08


Archive xxxxxxxxxxxx08 00000000000000000000

Ar00000000000000000000


+Archive +

+Archive +


Efficient str len finding. I can pad on an index:

{{padright: abcdefghij | 11 | A9876543210 }}

{{padright: abcdefghi | 11 | A9876543210 }}

{{padright: abcdefgh | 11 | A9876543210 }}

{{padright: | 11 | A9876543210 }}

abcdefghijA

abcdefghiA9

abcdefghA98

A9876543210

Then I can check the 11:th char with a switch-case. (9 = 9, A = 10)

Compare: {{padright: string | 11 | A9876543210 }} with {{padright: string | 10 | A9876543210 }} to see the 11:th char.

Note, if inside {{str len}} we probably only need to check 0-9, not 0-10.