KiCad PCB EDA Suite
lib_id.cpp File Reference
#include <cstring>
#include <memory>
#include <wx/translation.h>
#include <macros.h>
#include <lib_id.h>

Go to the source code of this file.

Functions

static int okLogical (const UTF8 &aField)
 

Function Documentation

◆ okLogical()

static int okLogical ( const UTF8 aField)
inlinestatic

Definition at line 34 of file lib_id.cpp.

35 {
36  // std::string::npos is largest positive number, casting to int makes it -1.
37  // Returning that means success.
38  return int( aField.find_first_of( ":" ) );
39 }
std::string::size_type find_first_of(const std::string &str, std::string::size_type pos=0) const
Definition: utf8.h:117

References UTF8::find_first_of().

Referenced by LIB_ID::Format(), and LIB_ID::SetLibNickname().