示例#1
0
void cRssParserItem::SetDescription(const char *strP)
{
  Utf8Strn0Cpy(descriptionM, strP, sizeof(descriptionM));
  compactspace(descriptionM);
  striphtml(descriptionM);
  Utf8Strn0Cpy(descriptionM, convM.Convert(descriptionM), sizeof(descriptionM));
}
示例#2
0
void cRssParserItem::SetTitle(const char *strP)
{
  Utf8Strn0Cpy(titleM, strP, sizeof(titleM));
  compactspace(titleM);
  striphtml(titleM);
  Utf8Strn0Cpy(titleM, convM.Convert(titleM), sizeof(titleM));
}
示例#3
0
文件: parser.c 项目: suborb/reelvdr
void cItem::SetDescription(const char *str)
{
  char tmp[LONG_TEXT_LEN];
  memset(tmp, 0, sizeof(tmp));
  const char* codeset =  cCharSetConv::SystemCharacterTable();
  charsetconv(tmp, sizeof(tmp), str, strlen(str), "UTF8", codeset?codeset:"UTF-8");
  compactspace(tmp);
  striphtml(tmp);
  debug("cItem::SetDescription nach striphtml:= '%s'", tmp);
  Utf8Strn0Cpy(description, tmp, sizeof(tmp));
}
示例#4
0
文件: parser.c 项目: suborb/reelvdr
void cItem::SetTitle(const char *str)
{
  char tmp[SHORT_TEXT_LEN];
  memset(tmp, 0, sizeof(tmp));
  const char* codeset =  cCharSetConv::SystemCharacterTable();
  charsetconv(tmp, sizeof(tmp), str, strlen(str), "UTF8", codeset?codeset:"UTF-8");
  compactspace(tmp);
  striphtml(tmp);
  debug("cItem::SetTitle(): '%s'", tmp);
  Utf8Strn0Cpy(title, tmp, sizeof(tmp));
}