Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4833 in orxonox.OLD for orxonox/trunk/src/lib/util


Ignore:
Timestamp:
Jul 11, 2005, 5:46:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fight against the mighty segfault

Location:
orxonox/trunk/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/substring.cc

    r4830 r4833  
    2424#include "substring.h"
    2525
     26#include "debug.h"
    2627#include <string.h>
    2728#include <assert.h>
     
    9192    return NULL;
    9293}
     94
     95
     96
     97/**
     98 * Some nice debug information about this SubString
     99 */
     100void SubString::debug() const
     101{
     102  PRINT(0)("Substring-information::count=%d ::", this->splittersCount);
     103  for (int i = 0; i < this->splittersCount; i++)
     104    PRINT(0)("s%d:%s::", i, this->strings[i]);
     105  PRINT(0)("\n");
     106}
  • orxonox/trunk/src/lib/util/substring.h

    r4830 r4833  
    1717  const char* getString( int i);
    1818
     19  void debug() const;
     20
    1921 private:
    2022  char**     strings;                      //!< strings produced from a single string splitted in multiple strings
Note: See TracChangeset for help on using the changeset viewer.