Changeset 1556 for trunk/yat/split.h


Ignore:
Timestamp:
Jan 4, 2013, 8:33:14 AM (9 years ago)
Author:
Peter Johansson
Message:

update to latest yat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/split.h

    r1463 r1556  
    11#ifndef _theplu_yat_utility_split_
    2 #define _theplu_yat_utility_split_ 
     2#define _theplu_yat_utility_split_
    33
    4 // $Id: split.h 2434 2011-03-08 16:52:23Z peter $
     4// $Id: split.h 2898 2012-12-12 05:13:02Z peter $
    55
    66/*
    7   Copyright (C) 2010 Peter Johansson
     7  Copyright (C) 2010, 2012 Peter Johansson
    88
    99  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    3636     result. If \a str contains N \a delim, the resulting \a result
    3737     will hold N+1 elements (given that it was empty to start
    38      with). If first or loast character in \a str is \a delim,
     38     with). If first or last character in \a str is \a delim,
    3939     corresponding element in \a result will be empty string ("").
    4040
    4141     \since New in yat 0.7
    4242   */
    43   void split(std::vector<std::string>& result, const std::string& str, 
     43  void split(std::vector<std::string>& result, const std::string& str,
    4444             char delim);
     45
     46  /**
     47     \brief split a string into substrings
     48
     49     Same as
     50     void split(std::vector<std::string>&, const std::string&,char delim);
     51     but split if character matches any in delims, i.e.,
     52     split(vec,"split,me;please", ",;") will be split into "split",
     53     "me", and "please".
     54
     55     \since New in yat 0.10
     56   */
     57  void split(std::vector<std::string>& result, const std::string& str,
     58             const std::string& delim);
    4559
    4660}}} // of namespace utility, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.