Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 30.74 KB | None | 0 0
  1. Function WeirdCase(input As String)
  2.         Dim output As String() = {""}
  3.         For i As Integer = 1 To input.Length
  4.             If input(i - 1) = "a" Then
  5.                 If i / 2 = Math.Round(i / 2) Then
  6.                     Dim list As New List(Of String)(output)
  7.                     list.Add("A")
  8.                     output = list.ToArray()
  9.                 Else
  10.                     If Not i / 2 = Math.Round(i / 2) Then
  11.                         Dim list As New List(Of String)(output)
  12.                         list.Add("a")
  13.                         output = list.ToArray()
  14.                     End If
  15.                 End If
  16.             Else
  17.                 If input(i - 1) = "A" Then
  18.                     If i / 2 = Math.Round(i / 2) Then
  19.                         Dim list As New List(Of String)(output)
  20.                         list.Add("A")
  21.                         output = list.ToArray()
  22.                     Else
  23.                         If Not i / 2 = Math.Round(i / 2) Then
  24.                             Dim list As New List(Of String)(output)
  25.                             list.Add("a")
  26.                             output = list.ToArray()
  27.                         End If
  28.                     End If
  29.                 End If
  30.             End If
  31.  
  32.             If input(i - 1) = "b" Then
  33.                 If i / 2 = Math.Round(i / 2) Then
  34.                     Dim list As New List(Of String)(output)
  35.                     list.Add("B")
  36.                     output = list.ToArray()
  37.                 Else
  38.                     If Not i / 2 = Math.Round(i / 2) Then
  39.                         Dim list As New List(Of String)(output)
  40.                         list.Add("b")
  41.                         output = list.ToArray()
  42.                     End If
  43.                 End If
  44.             Else
  45.                 If input(i - 1) = "B" Then
  46.                     If i / 2 = Math.Round(i / 2) Then
  47.                         Dim list As New List(Of String)(output)
  48.                         list.Add("B")
  49.                         output = list.ToArray()
  50.                     Else
  51.                         If Not i / 2 = Math.Round(i / 2) Then
  52.                             Dim list As New List(Of String)(output)
  53.                             list.Add("b")
  54.                             output = list.ToArray()
  55.                         End If
  56.                     End If
  57.                 End If
  58.             End If
  59.  
  60.             If input(i - 1) = "c" Then
  61.                 If i / 2 = Math.Round(i / 2) Then
  62.                     Dim list As New List(Of String)(output)
  63.                     list.Add("C")
  64.                     output = list.ToArray()
  65.                 Else
  66.                     If Not i / 2 = Math.Round(i / 2) Then
  67.                         Dim list As New List(Of String)(output)
  68.                         list.Add("c")
  69.                         output = list.ToArray()
  70.                     End If
  71.                 End If
  72.             Else
  73.                 If input(i - 1) = "C" Then
  74.                     If i / 2 = Math.Round(i / 2) Then
  75.                         Dim list As New List(Of String)(output)
  76.                         list.Add("C")
  77.                         output = list.ToArray()
  78.                     Else
  79.                         If Not i / 2 = Math.Round(i / 2) Then
  80.                             Dim list As New List(Of String)(output)
  81.                             list.Add("c")
  82.                             output = list.ToArray()
  83.                         End If
  84.                     End If
  85.                 End If
  86.             End If
  87.  
  88.             If input(i - 1) = "d" Then
  89.                 If i / 2 = Math.Round(i / 2) Then
  90.                     Dim list As New List(Of String)(output)
  91.                     list.Add("D")
  92.                     output = list.ToArray()
  93.                 Else
  94.                     If Not i / 2 = Math.Round(i / 2) Then
  95.                         Dim list As New List(Of String)(output)
  96.                         list.Add("d")
  97.                         output = list.ToArray()
  98.                     End If
  99.                 End If
  100.             Else
  101.                 If input(i - 1) = "D" Then
  102.                     If i / 2 = Math.Round(i / 2) Then
  103.                         Dim list As New List(Of String)(output)
  104.                         list.Add("D")
  105.                         output = list.ToArray()
  106.                     Else
  107.                         If Not i / 2 = Math.Round(i / 2) Then
  108.                             Dim list As New List(Of String)(output)
  109.                             list.Add("d")
  110.                             output = list.ToArray()
  111.                         End If
  112.                     End If
  113.                 End If
  114.             End If
  115.  
  116.             If input(i - 1) = "e" Then
  117.                 If i / 2 = Math.Round(i / 2) Then
  118.                     Dim list As New List(Of String)(output)
  119.                     list.Add("E")
  120.                     output = list.ToArray()
  121.                 Else
  122.                     If Not i / 2 = Math.Round(i / 2) Then
  123.                         Dim list As New List(Of String)(output)
  124.                         list.Add("e")
  125.                         output = list.ToArray()
  126.                     End If
  127.                 End If
  128.             Else
  129.                 If input(i - 1) = "E" Then
  130.                     If i / 2 = Math.Round(i / 2) Then
  131.                         Dim list As New List(Of String)(output)
  132.                         list.Add("E")
  133.                         output = list.ToArray()
  134.                     Else
  135.                         If Not i / 2 = Math.Round(i / 2) Then
  136.                             Dim list As New List(Of String)(output)
  137.                             list.Add("e")
  138.                             output = list.ToArray()
  139.                         End If
  140.                     End If
  141.                 End If
  142.             End If
  143.  
  144.             If input(i - 1) = "f" Then
  145.                 If i / 2 = Math.Round(i / 2) Then
  146.                     Dim list As New List(Of String)(output)
  147.                     list.Add("F")
  148.                     output = list.ToArray()
  149.                 Else
  150.                     If Not i / 2 = Math.Round(i / 2) Then
  151.                         Dim list As New List(Of String)(output)
  152.                         list.Add("f")
  153.                         output = list.ToArray()
  154.                     End If
  155.                 End If
  156.             Else
  157.                 If input(i - 1) = "E" Then
  158.                     If i / 2 = Math.Round(i / 2) Then
  159.                         Dim list As New List(Of String)(output)
  160.                         list.Add("F")
  161.                         output = list.ToArray()
  162.                     Else
  163.                         If Not i / 2 = Math.Round(i / 2) Then
  164.                             Dim list As New List(Of String)(output)
  165.                             list.Add("f")
  166.                             output = list.ToArray()
  167.                         End If
  168.                     End If
  169.                 End If
  170.             End If
  171.  
  172.             If input(i - 1) = "g" Then
  173.                 If i / 2 = Math.Round(i / 2) Then
  174.                     Dim list As New List(Of String)(output)
  175.                     list.Add("G")
  176.                     output = list.ToArray()
  177.                 Else
  178.                     If Not i / 2 = Math.Round(i / 2) Then
  179.                         Dim list As New List(Of String)(output)
  180.                         list.Add("g")
  181.                         output = list.ToArray()
  182.                     End If
  183.                 End If
  184.             Else
  185.                 If input(i - 1) = "G" Then
  186.                     If i / 2 = Math.Round(i / 2) Then
  187.                         Dim list As New List(Of String)(output)
  188.                         list.Add("G")
  189.                         output = list.ToArray()
  190.                     Else
  191.                         If Not i / 2 = Math.Round(i / 2) Then
  192.                             Dim list As New List(Of String)(output)
  193.                             list.Add("g")
  194.                             output = list.ToArray()
  195.                         End If
  196.                     End If
  197.                 End If
  198.             End If
  199.  
  200.             If input(i - 1) = "h" Then
  201.                 If i / 2 = Math.Round(i / 2) Then
  202.                     Dim list As New List(Of String)(output)
  203.                     list.Add("H")
  204.                     output = list.ToArray()
  205.                 Else
  206.                     If Not i / 2 = Math.Round(i / 2) Then
  207.                         Dim list As New List(Of String)(output)
  208.                         list.Add("h")
  209.                         output = list.ToArray()
  210.                     End If
  211.                 End If
  212.             Else
  213.                 If input(i - 1) = "H" Then
  214.                     If i / 2 = Math.Round(i / 2) Then
  215.                         Dim list As New List(Of String)(output)
  216.                         list.Add("H")
  217.                         output = list.ToArray()
  218.                     Else
  219.                         If Not i / 2 = Math.Round(i / 2) Then
  220.                             Dim list As New List(Of String)(output)
  221.                             list.Add("h")
  222.                             output = list.ToArray()
  223.                         End If
  224.                     End If
  225.                 End If
  226.             End If
  227.  
  228.             If input(i - 1) = "i" Then
  229.                 If i / 2 = Math.Round(i / 2) Then
  230.                     Dim list As New List(Of String)(output)
  231.                     list.Add("I")
  232.                     output = list.ToArray()
  233.                 Else
  234.                     If Not i / 2 = Math.Round(i / 2) Then
  235.                         Dim list As New List(Of String)(output)
  236.                         list.Add("i")
  237.                         output = list.ToArray()
  238.                     End If
  239.                 End If
  240.             Else
  241.                 If input(i - 1) = "I" Then
  242.                     If i / 2 = Math.Round(i / 2) Then
  243.                         Dim list As New List(Of String)(output)
  244.                         list.Add("I")
  245.                         output = list.ToArray()
  246.                     Else
  247.                         If Not i / 2 = Math.Round(i / 2) Then
  248.                             Dim list As New List(Of String)(output)
  249.                             list.Add("i")
  250.                             output = list.ToArray()
  251.                         End If
  252.                     End If
  253.                 End If
  254.             End If
  255.  
  256.             If input(i - 1) = "j" Then
  257.                 If i / 2 = Math.Round(i / 2) Then
  258.                     Dim list As New List(Of String)(output)
  259.                     list.Add("J")
  260.                     output = list.ToArray()
  261.                 Else
  262.                     If Not i / 2 = Math.Round(i / 2) Then
  263.                         Dim list As New List(Of String)(output)
  264.                         list.Add("j")
  265.                         output = list.ToArray()
  266.                     End If
  267.                 End If
  268.             Else
  269.                 If input(i - 1) = "J" Then
  270.                     If i / 2 = Math.Round(i / 2) Then
  271.                         Dim list As New List(Of String)(output)
  272.                         list.Add("J")
  273.                         output = list.ToArray()
  274.                     Else
  275.                         If Not i / 2 = Math.Round(i / 2) Then
  276.                             Dim list As New List(Of String)(output)
  277.                             list.Add("j")
  278.                             output = list.ToArray()
  279.                         End If
  280.                     End If
  281.                 End If
  282.             End If
  283.  
  284.             If input(i - 1) = "j" Then
  285.                 If i / 2 = Math.Round(i / 2) Then
  286.                     Dim list As New List(Of String)(output)
  287.                     list.Add("J")
  288.                     output = list.ToArray()
  289.                 Else
  290.                     If Not i / 2 = Math.Round(i / 2) Then
  291.                         Dim list As New List(Of String)(output)
  292.                         list.Add("j")
  293.                         output = list.ToArray()
  294.                     End If
  295.                 End If
  296.             Else
  297.                 If input(i - 1) = "J" Then
  298.                     If i / 2 = Math.Round(i / 2) Then
  299.                         Dim list As New List(Of String)(output)
  300.                         list.Add("J")
  301.                         output = list.ToArray()
  302.                     Else
  303.                         If Not i / 2 = Math.Round(i / 2) Then
  304.                             Dim list As New List(Of String)(output)
  305.                             list.Add("j")
  306.                             output = list.ToArray()
  307.                         End If
  308.                     End If
  309.                 End If
  310.             End If
  311.  
  312.             If input(i - 1) = "k" Then
  313.                 If i / 2 = Math.Round(i / 2) Then
  314.                     Dim list As New List(Of String)(output)
  315.                     list.Add("K")
  316.                     output = list.ToArray()
  317.                 Else
  318.                     If Not i / 2 = Math.Round(i / 2) Then
  319.                         Dim list As New List(Of String)(output)
  320.                         list.Add("k")
  321.                         output = list.ToArray()
  322.                     End If
  323.                 End If
  324.             Else
  325.                 If input(i - 1) = "K" Then
  326.                     If i / 2 = Math.Round(i / 2) Then
  327.                         Dim list As New List(Of String)(output)
  328.                         list.Add("K")
  329.                         output = list.ToArray()
  330.                     Else
  331.                         If Not i / 2 = Math.Round(i / 2) Then
  332.                             Dim list As New List(Of String)(output)
  333.                             list.Add("k")
  334.                             output = list.ToArray()
  335.                         End If
  336.                     End If
  337.                 End If
  338.             End If
  339.  
  340.             If input(i - 1) = "l" Then
  341.                 If i / 2 = Math.Round(i / 2) Then
  342.                     Dim list As New List(Of String)(output)
  343.                     list.Add("L")
  344.                     output = list.ToArray()
  345.                 Else
  346.                     If Not i / 2 = Math.Round(i / 2) Then
  347.                         Dim list As New List(Of String)(output)
  348.                         list.Add("l")
  349.                         output = list.ToArray()
  350.                     End If
  351.                 End If
  352.             Else
  353.                 If input(i - 1) = "L" Then
  354.                     If i / 2 = Math.Round(i / 2) Then
  355.                         Dim list As New List(Of String)(output)
  356.                         list.Add("L")
  357.                         output = list.ToArray()
  358.                     Else
  359.                         If Not i / 2 = Math.Round(i / 2) Then
  360.                             Dim list As New List(Of String)(output)
  361.                             list.Add("l")
  362.                             output = list.ToArray()
  363.                         End If
  364.                     End If
  365.                 End If
  366.             End If
  367.  
  368.             If input(i - 1) = "m" Then
  369.                 If i / 2 = Math.Round(i / 2) Then
  370.                     Dim list As New List(Of String)(output)
  371.                     list.Add("M")
  372.                     output = list.ToArray()
  373.                 Else
  374.                     If Not i / 2 = Math.Round(i / 2) Then
  375.                         Dim list As New List(Of String)(output)
  376.                         list.Add("m")
  377.                         output = list.ToArray()
  378.                     End If
  379.                 End If
  380.             Else
  381.                 If input(i - 1) = "M" Then
  382.                     If i / 2 = Math.Round(i / 2) Then
  383.                         Dim list As New List(Of String)(output)
  384.                         list.Add("M")
  385.                         output = list.ToArray()
  386.                     Else
  387.                         If Not i / 2 = Math.Round(i / 2) Then
  388.                             Dim list As New List(Of String)(output)
  389.                             list.Add("m")
  390.                             output = list.ToArray()
  391.                         End If
  392.                     End If
  393.                 End If
  394.             End If
  395.  
  396.             If input(i - 1) = "n" Then
  397.                 If i / 2 = Math.Round(i / 2) Then
  398.                     Dim list As New List(Of String)(output)
  399.                     list.Add("N")
  400.                     output = list.ToArray()
  401.                 Else
  402.                     If Not i / 2 = Math.Round(i / 2) Then
  403.                         Dim list As New List(Of String)(output)
  404.                         list.Add("n")
  405.                         output = list.ToArray()
  406.                     End If
  407.                 End If
  408.             Else
  409.                 If input(i - 1) = "N" Then
  410.                     If i / 2 = Math.Round(i / 2) Then
  411.                         Dim list As New List(Of String)(output)
  412.                         list.Add("N")
  413.                         output = list.ToArray()
  414.                     Else
  415.                         If Not i / 2 = Math.Round(i / 2) Then
  416.                             Dim list As New List(Of String)(output)
  417.                             list.Add("n")
  418.                             output = list.ToArray()
  419.                         End If
  420.                     End If
  421.                 End If
  422.             End If
  423.  
  424.             If input(i - 1) = "o" Then
  425.                 If i / 2 = Math.Round(i / 2) Then
  426.                     Dim list As New List(Of String)(output)
  427.                     list.Add("O")
  428.                     output = list.ToArray()
  429.                 Else
  430.                     If Not i / 2 = Math.Round(i / 2) Then
  431.                         Dim list As New List(Of String)(output)
  432.                         list.Add("o")
  433.                         output = list.ToArray()
  434.                     End If
  435.                 End If
  436.             Else
  437.                 If input(i - 1) = "O" Then
  438.                     If i / 2 = Math.Round(i / 2) Then
  439.                         Dim list As New List(Of String)(output)
  440.                         list.Add("O")
  441.                         output = list.ToArray()
  442.                     Else
  443.                         If Not i / 2 = Math.Round(i / 2) Then
  444.                             Dim list As New List(Of String)(output)
  445.                             list.Add("o")
  446.                             output = list.ToArray()
  447.                         End If
  448.                     End If
  449.                 End If
  450.             End If
  451.  
  452.             If input(i - 1) = "p" Then
  453.                 If i / 2 = Math.Round(i / 2) Then
  454.                     Dim list As New List(Of String)(output)
  455.                     list.Add("P")
  456.                     output = list.ToArray()
  457.                 Else
  458.                     If Not i / 2 = Math.Round(i / 2) Then
  459.                         Dim list As New List(Of String)(output)
  460.                         list.Add("p")
  461.                         output = list.ToArray()
  462.                     End If
  463.                 End If
  464.             Else
  465.                 If input(i - 1) = "P" Then
  466.                     If i / 2 = Math.Round(i / 2) Then
  467.                         Dim list As New List(Of String)(output)
  468.                         list.Add("P")
  469.                         output = list.ToArray()
  470.                     Else
  471.                         If Not i / 2 = Math.Round(i / 2) Then
  472.                             Dim list As New List(Of String)(output)
  473.                             list.Add("p")
  474.                             output = list.ToArray()
  475.                         End If
  476.                     End If
  477.                 End If
  478.             End If
  479.  
  480.             If input(i - 1) = "q" Then
  481.                 If i / 2 = Math.Round(i / 2) Then
  482.                     Dim list As New List(Of String)(output)
  483.                     list.Add("Q")
  484.                     output = list.ToArray()
  485.                 Else
  486.                     If Not i / 2 = Math.Round(i / 2) Then
  487.                         Dim list As New List(Of String)(output)
  488.                         list.Add("q")
  489.                         output = list.ToArray()
  490.                     End If
  491.                 End If
  492.             Else
  493.                 If input(i - 1) = "Q" Then
  494.                     If i / 2 = Math.Round(i / 2) Then
  495.                         Dim list As New List(Of String)(output)
  496.                         list.Add("Q")
  497.                         output = list.ToArray()
  498.                     Else
  499.                         If Not i / 2 = Math.Round(i / 2) Then
  500.                             Dim list As New List(Of String)(output)
  501.                             list.Add("q")
  502.                             output = list.ToArray()
  503.                         End If
  504.                     End If
  505.                 End If
  506.             End If
  507.  
  508.             If input(i - 1) = "r" Then
  509.                 If i / 2 = Math.Round(i / 2) Then
  510.                     Dim list As New List(Of String)(output)
  511.                     list.Add("R")
  512.                     output = list.ToArray()
  513.                 Else
  514.                     If Not i / 2 = Math.Round(i / 2) Then
  515.                         Dim list As New List(Of String)(output)
  516.                         list.Add("r")
  517.                         output = list.ToArray()
  518.                     End If
  519.                 End If
  520.             Else
  521.                 If input(i - 1) = "R" Then
  522.                     If i / 2 = Math.Round(i / 2) Then
  523.                         Dim list As New List(Of String)(output)
  524.                         list.Add("R")
  525.                         output = list.ToArray()
  526.                     Else
  527.                         If Not i / 2 = Math.Round(i / 2) Then
  528.                             Dim list As New List(Of String)(output)
  529.                             list.Add("r")
  530.                             output = list.ToArray()
  531.                         End If
  532.                     End If
  533.                 End If
  534.             End If
  535.  
  536.             If input(i - 1) = "s" Then
  537.                 If i / 2 = Math.Round(i / 2) Then
  538.                     Dim list As New List(Of String)(output)
  539.                     list.Add("S")
  540.                     output = list.ToArray()
  541.                 Else
  542.                     If Not i / 2 = Math.Round(i / 2) Then
  543.                         Dim list As New List(Of String)(output)
  544.                         list.Add("s")
  545.                         output = list.ToArray()
  546.                     End If
  547.                 End If
  548.             Else
  549.                 If input(i - 1) = "S" Then
  550.                     If i / 2 = Math.Round(i / 2) Then
  551.                         Dim list As New List(Of String)(output)
  552.                         list.Add("S")
  553.                         output = list.ToArray()
  554.                     Else
  555.                         If Not i / 2 = Math.Round(i / 2) Then
  556.                             Dim list As New List(Of String)(output)
  557.                             list.Add("s")
  558.                             output = list.ToArray()
  559.                         End If
  560.                     End If
  561.                 End If
  562.             End If
  563.  
  564.             If input(i - 1) = "t" Then
  565.                 If i / 2 = Math.Round(i / 2) Then
  566.                     Dim list As New List(Of String)(output)
  567.                     list.Add("T")
  568.                     output = list.ToArray()
  569.                 Else
  570.                     If Not i / 2 = Math.Round(i / 2) Then
  571.                         Dim list As New List(Of String)(output)
  572.                         list.Add("t")
  573.                         output = list.ToArray()
  574.                     End If
  575.                 End If
  576.             Else
  577.                 If input(i - 1) = "T" Then
  578.                     If i / 2 = Math.Round(i / 2) Then
  579.                         Dim list As New List(Of String)(output)
  580.                         list.Add("T")
  581.                         output = list.ToArray()
  582.                     Else
  583.                         If Not i / 2 = Math.Round(i / 2) Then
  584.                             Dim list As New List(Of String)(output)
  585.                             list.Add("t")
  586.                             output = list.ToArray()
  587.                         End If
  588.                     End If
  589.                 End If
  590.             End If
  591.  
  592.             If input(i - 1) = "u" Then
  593.                 If i / 2 = Math.Round(i / 2) Then
  594.                     Dim list As New List(Of String)(output)
  595.                     list.Add("U")
  596.                     output = list.ToArray()
  597.                 Else
  598.                     If Not i / 2 = Math.Round(i / 2) Then
  599.                         Dim list As New List(Of String)(output)
  600.                         list.Add("u")
  601.                         output = list.ToArray()
  602.                     End If
  603.                 End If
  604.             Else
  605.                 If input(i - 1) = "U" Then
  606.                     If i / 2 = Math.Round(i / 2) Then
  607.                         Dim list As New List(Of String)(output)
  608.                         list.Add("U")
  609.                         output = list.ToArray()
  610.                     Else
  611.                         If Not i / 2 = Math.Round(i / 2) Then
  612.                             Dim list As New List(Of String)(output)
  613.                             list.Add("u")
  614.                             output = list.ToArray()
  615.                         End If
  616.                     End If
  617.                 End If
  618.             End If
  619.  
  620.             If input(i - 1) = "v" Then
  621.                 If i / 2 = Math.Round(i / 2) Then
  622.                     Dim list As New List(Of String)(output)
  623.                     list.Add("V")
  624.                     output = list.ToArray()
  625.                 Else
  626.                     If Not i / 2 = Math.Round(i / 2) Then
  627.                         Dim list As New List(Of String)(output)
  628.                         list.Add("v")
  629.                         output = list.ToArray()
  630.                     End If
  631.                 End If
  632.             Else
  633.                 If input(i - 1) = "V" Then
  634.                     If i / 2 = Math.Round(i / 2) Then
  635.                         Dim list As New List(Of String)(output)
  636.                         list.Add("V")
  637.                         output = list.ToArray()
  638.                     Else
  639.                         If Not i / 2 = Math.Round(i / 2) Then
  640.                             Dim list As New List(Of String)(output)
  641.                             list.Add("v")
  642.                             output = list.ToArray()
  643.                         End If
  644.                     End If
  645.                 End If
  646.             End If
  647.  
  648.             If input(i - 1) = "w" Then
  649.                 If i / 2 = Math.Round(i / 2) Then
  650.                     Dim list As New List(Of String)(output)
  651.                     list.Add("W")
  652.                     output = list.ToArray()
  653.                 Else
  654.                     If Not i / 2 = Math.Round(i / 2) Then
  655.                         Dim list As New List(Of String)(output)
  656.                         list.Add("W")
  657.                         output = list.ToArray()
  658.                     End If
  659.                 End If
  660.             Else
  661.                 If input(i - 1) = "W" Then
  662.                     If i / 2 = Math.Round(i / 2) Then
  663.                         Dim list As New List(Of String)(output)
  664.                         list.Add("W")
  665.                         output = list.ToArray()
  666.                     Else
  667.                         If Not i / 2 = Math.Round(i / 2) Then
  668.                             Dim list As New List(Of String)(output)
  669.                             list.Add("w")
  670.                             output = list.ToArray()
  671.                         End If
  672.                     End If
  673.                 End If
  674.             End If
  675.  
  676.             If input(i - 1) = "x" Then
  677.                 If i / 2 = Math.Round(i / 2) Then
  678.                     Dim list As New List(Of String)(output)
  679.                     list.Add("X")
  680.                     output = list.ToArray()
  681.                 Else
  682.                     If Not i / 2 = Math.Round(i / 2) Then
  683.                         Dim list As New List(Of String)(output)
  684.                         list.Add("x")
  685.                         output = list.ToArray()
  686.                     End If
  687.                 End If
  688.             Else
  689.                 If input(i - 1) = "X" Then
  690.                     If i / 2 = Math.Round(i / 2) Then
  691.                         Dim list As New List(Of String)(output)
  692.                         list.Add("X")
  693.                         output = list.ToArray()
  694.                     Else
  695.                         If Not i / 2 = Math.Round(i / 2) Then
  696.                             Dim list As New List(Of String)(output)
  697.                             list.Add("x")
  698.                             output = list.ToArray()
  699.                         End If
  700.                     End If
  701.                 End If
  702.             End If
  703.  
  704.             If input(i - 1) = "y" Then
  705.                 If i / 2 = Math.Round(i / 2) Then
  706.                     Dim list As New List(Of String)(output)
  707.                     list.Add("Y")
  708.                     output = list.ToArray()
  709.                 Else
  710.                     If Not i / 2 = Math.Round(i / 2) Then
  711.                         Dim list As New List(Of String)(output)
  712.                         list.Add("y")
  713.                         output = list.ToArray()
  714.                     End If
  715.                 End If
  716.             Else
  717.                 If input(i - 1) = "Y" Then
  718.                     If i / 2 = Math.Round(i / 2) Then
  719.                         Dim list As New List(Of String)(output)
  720.                         list.Add("Y")
  721.                         output = list.ToArray()
  722.                     Else
  723.                         If Not i / 2 = Math.Round(i / 2) Then
  724.                             Dim list As New List(Of String)(output)
  725.                             list.Add("y")
  726.                             output = list.ToArray()
  727.                         End If
  728.                     End If
  729.                 End If
  730.             End If
  731.  
  732.             If input(i - 1) = "z" Then
  733.                 If i / 2 = Math.Round(i / 2) Then
  734.                     Dim list As New List(Of String)(output)
  735.                     list.Add("Z")
  736.                     output = list.ToArray()
  737.                 Else
  738.                     If Not i / 2 = Math.Round(i / 2) Then
  739.                         Dim list As New List(Of String)(output)
  740.                         list.Add("z")
  741.                         output = list.ToArray()
  742.                     End If
  743.                 End If
  744.             Else
  745.                 If input(i - 1) = "Z" Then
  746.                     If i / 2 = Math.Round(i / 2) Then
  747.                         Dim list As New List(Of String)(output)
  748.                         list.Add("Z")
  749.                         output = list.ToArray()
  750.                     Else
  751.                         If Not i / 2 = Math.Round(i / 2) Then
  752.                             Dim list As New List(Of String)(output)
  753.                             list.Add("z")
  754.                             output = list.ToArray()
  755.                         End If
  756.                     End If
  757.                 End If
  758.             End If
  759.  
  760.         Next i
  761.  
  762.         Dim finalOutput As String
  763.         finalOutput = ""
  764.  
  765.         For Each item As String In output
  766.             Dim newString As String
  767.             newString = New System.Text.StringBuilder().Append(finalOutput).Append(item).ToString()
  768.             finalOutput = newString
  769.         Next
  770.  
  771.         Return finalOutput
  772.  
  773.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement