From 7567859abf3e7927d395b30dcdf2a4119e4f6bf8 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sat, 23 Jun 2012 22:31:44 +0000 Subject: [PATCH] forgoten file git-svn-id: svn://kolibrios.org@2824 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../network/htmlv/browser/include/parce_tag.h | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 programs/network/htmlv/browser/include/parce_tag.h diff --git a/programs/network/htmlv/browser/include/parce_tag.h b/programs/network/htmlv/browser/include/parce_tag.h new file mode 100644 index 0000000000..2757d319b6 --- /dev/null +++ b/programs/network/htmlv/browser/include/parce_tag.h @@ -0,0 +1,36 @@ +void GetNextParam() +{ + byte kavichki = false; + int i = strlen(#tagparam) - 1; + + WHILE((i > 0) && ((tagparam[i] == '"') || (tagparam[i] == ' ') || (tagparam[i] == '\'') || (tagparam[i] == '/'))) + { + IF (tagparam[i] == '"') || (tagparam[i] == '\'') kavichki=tagparam[i]; + tagparam[i] = 0x00; + i--; + } + + IF (kavichki) + { + i=find_symbol(#tagparam, kavichki); + strcpy(#options, #tagparam + i); + } + ELSE + { + WHILE((i > 0) && (tagparam[i] <>'=')) i--; //i=find_symbol(#tagparam, '=')+1; + i++; + + strcpy(#options, #tagparam + i); //копируем опцию + WHILE (options[0] == ' ') strcpy(#options, #options+1); + } + tagparam[i] = 0x00; + + FOR ( ; ((tagparam[i] <>' ') && (i > 0); i--) + { + IF (tagparam[i] == '=') //дерзкая заглушка + tagparam[i + 1] = 0x00; + } + + strcpy(#parametr, #tagparam + i + 1); //копируем параметр + tagparam[i] = 0x00; +}