comparison pidgin-twitter.h @ 225:1ef5aa4883a1

adapted to the change of user name definition in wassr. now '-' can be included.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 09 Sep 2008 18:53:36 +0900
parents 1fcd0e589b9e
children 8da85ae0aa2c
comparison
equal deleted inserted replaced
224:1fcd0e589b9e 225:1ef5aa4883a1
145 #define DEFAULT_LIST "(list of users: separated with ' ,:;')" 145 #define DEFAULT_LIST "(list of users: separated with ' ,:;')"
146 #define OOPS_MESSAGE "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>" 146 #define OOPS_MESSAGE "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>"
147 #define EMPTY "" 147 #define EMPTY ""
148 148
149 /* patterns */ 149 /* patterns */
150 #define P_RECIPIENT "(^|\\s+|[.[:^print:]])@([A-Za-z0-9_]+)" 150 #define P_RECIPIENT "(^|\\s+|[.[:^print:]])@([-A-Za-z0-9_]+)"
151 #define P_SENDER "^(\\r?\\n?)\\s*([A-Za-z0-9_]+)(?:\\s*\\(.+\\))?: " 151 #define P_SENDER "^(\\r?\\n?)\\s*([-A-Za-z0-9_]+)(?:\\s*\\(.+\\))?: "
152 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" 152 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)"
153 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" 153 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)"
154 #define P_USER "^\\(.+?\\)\\s*([A-Za-z0-9_]+):" 154 #define P_USER "^\\(.+?\\)\\s*([-A-Za-z0-9_]+):"
155 #define P_USER_FIRST_LINE "^\\(.+?\\)\\s*.+:\\s*([A-Za-z0-9_]+):" 155 #define P_USER_FIRST_LINE "^\\(.+?\\)\\s*.+:\\s*([-A-Za-z0-9_]+):"
156 #define P_USER_FORMATTED "^.*?<a .+?>([A-Za-z0-9_]+)</a>:" 156 #define P_USER_FORMATTED "^.*?<a .+?>([-A-Za-z0-9_]+)</a>:"
157 #define P_CHANNEL "^(.*?<a .+?>[A-Za-z0-9_]+</a>: \\r?\\n?#)([A-Za-z0-9_]+) " 157 #define P_CHANNEL "^(.*?<a .+?>[A-Za-z0-9_]+</a>: \\r?\\n?#)([A-Za-z0-9_]+) "
158 #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" 158 #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>"
159 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" 159 #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>"
160 #define P_IMAGE_IDENTICA "<img src=\"(http://.+.identi.ca/.+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>" 160 #define P_IMAGE_IDENTICA "<img src=\"(http://.+.identi.ca/.+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>"
161 #define P_TAG_IDENTICA "#([A-Za-z0-9]+)" 161 #define P_TAG_IDENTICA "#([A-Za-z0-9]+)"