Skip to content

Instantly share code, notes, and snippets.

@kaworun
Created January 23, 2013 10:22
Show Gist options
  • Save kaworun/4604077 to your computer and use it in GitHub Desktop.
Save kaworun/4604077 to your computer and use it in GitHub Desktop.
-- s = string.len("渚カヲル")
s = #("渚カヲル")
print(s)
s = string.sub("渚カヲル", 2, 3)
print(s)
s = string.find("渚カヲル", "渚")
print(s)
s = string.gsub("渚カヲル", "カヲル", "オワリ")
print(s)
s = string.upper("kaworu nagisa")
print(s)
s = string.lower("KAWORU NAGISA")
print(s)
s = string.reverse("渚カヲル")
print(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment