목록전체 글 (4)
열람용기록
C++11 이후 버전에서 공식적으로 정규표현식을 사용하게 되면서 C++에서 문자열을 파싱하기가 한결 수월해졌다. 하지만 오늘 업무 중에 regex 의 동작 방법을 잘 몰라서 고생할 뻔했기에 기록을 남겨둔다. 아래의 코드는 regex를 사용하는 기본 코드이다. #include #include using namespace std; int main() { regex rPattern("(\\w+)_(\\d+)"); smatch mResult; string sInput = "abc_123"; if (regex_match(sInput, mResult, rPattern)) cout
Style Guide | Protocol Buffers | Google Developers This document provides a style guide for .proto files. By following these conventions, you'll make your protocol buffer message definitions and their corresponding classes consistent and easy to read. Note that protocol buffer style has evolved over time, developers.google.com 이 문서는 .proto 파일을 위한 스타일 가이드를 제공합니다. 이 규칙을 지킨다면 일관성과 가독성 있는 protocol b..
Techniques | Protocol Buffers | Google Developers This page describes some commonly-used design patterns for dealing with Protocol Buffers. You can also send design and usage questions to the Protocol Buffers discussion group. Streaming Multiple Messages If you want to write multiple messages to a single developers.google.com 이 페이지는 Protocol Buffer를 다룰 때 일반적으로 사용되는 디자인 패턴을 소개합니다. 디자인이나 사용에 대한 문의..