[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
相关文章
相关标签/搜索