[lua] string trim實現

From: http://lua-users.org/wiki/StringTrimhtml There are many ways to implement the "trim" function [1] in Lua:ui -- trim implementations function trim1(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end
相關文章
相關標籤/搜索