src/chxj_tag_util.c
/**
 * The value of the type attribute is acquired.
 *
 * @param doc  [i] The pointer to the Doc structure to be scanned is
 *                 specified.
 * @param tag  [i] The tag node to be scanned is specified.
 * @param r    [i] To use POOL, the pointer to request_rec is specified.
 * @return The value of the type attribute is returned. NULL is returned when
 *         not found.
 */
The value of the type attribute is acquired.
@param doc  [i] The pointer to the Doc structure to be scanned is
specified.
@param tag  [i] The tag node to be scanned is specified.
@param r    [i] To use POOL, the pointer to request_rec is specified.
@return The value of the type attribute is returned. NULL is returned when
not found.
The value of the type attribute is acquired . @param doc [ i ] The pointer to the Doc structure to be scanned is specified . @param tag [ i ] The tag node to be scanned is specified . @param r [ i ] To use POOL the pointer to request_rec is specified . @return The value of the type attribute is returned . NULL is returned when not found .
char *
qs_get_type_attr(Doc *doc, Node *tag, apr_pool_t *pool)
{
  Attr *attr;
  for (attr = qs_get_attr(doc,tag);
       attr != NULL;
       attr = qs_get_next_attr(doc,attr)) {
    char *name  = qs_get_attr_name(doc,attr);
    char *value = qs_get_attr_value(doc,attr);
    if (STRCASEEQ('t','T',"type",name)) {
      return apr_pstrdup(pool, value);
    }
  }
  return NULL;
}
char * qs_get_type_attr ( Doc * doc , Node * tag , apr_pool_t * pool ) { Attr * attr ; for ( attr = qs_get_attr ( doc , tag ) ; attr != NULL ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { return apr_pstrdup ( pool , value ) ; } } return NULL ; }
The value of the type attribute is acquired.
The value of the type attribute is acquired .
/*--------------------------------------------------------------------------*/ /* The object tag node is scanned.                                          */ /*--------------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* The VALUE attribute was found.                                       */ /*----------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/ /* not found                                                                */ /*--------------------------------------------------------------------------*/