Guest User

Untitled

a guest
Dec 23rd, 2017
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.57 KB | None | 0 0
  1. <%@Language = VBScript %>
  2. <!--#include file="naber2.asp"-->
  3. <%
  4. ' str = "x@example.com"
  5. ' numpad = 16 - (Len(str) Mod 16)
  6. ' str = str & String("&H"& numpad).Repeat(numpad)
  7. ' Response.Write str
  8.  
  9. Private Function toStr(ByVal s)
  10.     toStr = CStr(s)
  11. End Function
  12.  
  13. 'Response.Write TypeName(toStr(4))
  14.  
  15. Public Function String(ByVal sName)
  16.     Set String = (New StringBuilder)(sName)
  17. End Function
  18.  
  19. Class StringBuilder
  20.     Public strCurr
  21.     Public Property Let ad(ByVal dilo)
  22.         strCurr = dilo
  23.     End Property
  24.  
  25.     Public Default Function Take(ByVal name)
  26.         strCurr = name
  27.         Set Take = Me
  28.     End Function
  29.    
  30.     Public Property Get ad
  31.         ad = strCurr
  32.     End Property
  33.  
  34.     Public Function toStr()
  35.         toStr = CStr(strCurr)
  36.     End Function
  37.     Public Function toReverse()
  38.         toReverse = strReverse(strCurr)
  39.     End Function
  40.    
  41.     Public Function toArr()
  42.         Dim arrTmp()
  43.         Redim arrTmp(Me.CharLength(strCurr) - 1)
  44.         For i = 0 To UBound(arrTmp)
  45.             arrTmp(i) = Mid(strCurr, i + 1, 1)
  46.         Next
  47.         toArr = arrTmp
  48.     End Function
  49.    
  50.     Public Function CharLength(strCurr)
  51.         CharLength = Len(strCurr)
  52.     End Function
  53.    
  54.     Public Function Repeat(ByVal intCnt)
  55.         Repeat = Join(Split(Space(intCnt)), strCurr)
  56.     End Function
  57. End Class
  58.  
  59. Dim o
  60. Set o = New StringBuilder
  61. Dim d
  62. Set d = Server.CreateObject("Adodb.Connection")
  63.  
  64. Dim str : str = "naber lan düdük"& sokarımatu & ""+ 234.23 & Join(Array(1,2,4),"")
  65.  
  66. 'Response.Write String(3).toStr()
  67. 'Response.Write(Join(String("Mahmut").toArr, "*"))
  68. 'For i = 1 To 255
  69. 'Response.Write(String("vadsap ").Repeat(64) & "<br />")
  70. 'Next
  71.  
  72. '#region naber
  73.  
  74. '#endregion
  75. %>
Add Comment
Please, Sign In to add comment